Skip to content

Commit

Permalink
[ADD] #67 배포용 Dockerfile 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
cbinarycastle committed Feb 5, 2019
1 parent 77dd221 commit 9eb1141
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
ARG JDK_IMAGE_VERSION=latest
FROM openjdk:${JDK_IMAGE_VERSION}
MAINTAINER Sungbin Cho <[email protected]>

ENV SOURCE_ARTIFACT app/yellowcard/yellowcard-api-0.0.1.jar
ENV DESTINATION_ARTIFACT /opt/yellowcard/yellowcard-api-0.0.1.jar

ADD ${SOURCE_ARTIFACT} ${DESTINATION_ARTIFACT}

ENTRYPOINT ["java", "-jar"]
CMD ["-Dspring.profiles.active=production", "/opt/yellowcard/yellowcard-api-0.0.1.jar"]

0 comments on commit 9eb1141

Please sign in to comment.