Skip to content

Commit

Permalink
azure 디플로이 파일 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
kimscott committed Apr 2, 2020
1 parent 8a1fa9f commit ead67f7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions DockerfileAutoBuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM maven:3.5.2-jdk-8-alpine AS MAVEN_TOOL_CHAIN
COPY pom.xml /tmp/
COPY src /tmp/src/
WORKDIR /tmp/
RUN mvn package -B

FROM openjdk:8u212-jdk-alpine
COPY --from=MAVEN_TOOL_CHAIN /tmp/target/*.jar app.jar
EXPOSE 8080
ENTRYPOINT ["java","-Xmx400M","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar","--spring.profiles.active=docker"]

0 comments on commit ead67f7

Please sign in to comment.