diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..07b46da --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +ARG VERSION=latest +FROM openjdk:${VERSION} +MAINTAINER Sungbin Cho + +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"] \ No newline at end of file