Skip to content

Commit eb1b7b4

Browse files
committed
[TJA-94] Dockerfile 수정
1 parent 8c0c1d0 commit eb1b7b4

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

docker-cross-build/Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM openjdk:8-jdk-alpine as build
2+
WORKDIR /app
3+
4+
COPY mvnw .
5+
COPY .mvn .mvn
6+
COPY pom.xml .
7+
COPY src src
8+
9+
RUN ./mvnw package -DskipTests
10+
11+
ARG JAR_FILE=target/*.jar
12+
COPY ${JAR_FILE} app.jar
13+
14+
FROM openjdk:8-jre-alpine
15+
WORKDIR /app
16+
COPY --from=build /app/app.jar /app
17+
CMD ["java","-jar","/app/app.jar"]

0 commit comments

Comments
 (0)