diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b793b18 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +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 + +ADD ${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