From 77864e11402487bb1d0b0a9052903e9198f4d655 Mon Sep 17 00:00:00 2001 From: BeINone Date: Tue, 5 Feb 2019 19:50:32 +0900 Subject: [PATCH] =?UTF-8?q?[ADD]=20#67=20=EB=B0=B0=ED=8F=AC=EC=9A=A9=20Doc?= =?UTF-8?q?kerfile=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Dockerfile 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