From 27c70d713c80a683c20b587d21fb5b993e71e107 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 | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Dockerfile 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