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 27c70d7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
ARG VERSION=latest
FROM openjdk:${VERSION}
MAINTAINER Sungbin Cho <[email protected]>

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

WORKDIR /
COPY ${SOURCE_ARTIFACT} ${DESTINATION_ARTIFACT}

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

0 comments on commit 27c70d7

Please sign in to comment.