From b15ea7b131b780635058db8755fc5259ed491288 Mon Sep 17 00:00:00 2001 From: seo-young Date: Thu, 15 Feb 2024 15:43:43 +0900 Subject: [PATCH] =?UTF-8?q?[chore]=20Dockerfile,=20docker-compose=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .deploy/Dockerfile | 4 ++++ .deploy/docker-compose.yml | 9 +++++++++ 2 files changed, 13 insertions(+) create mode 100644 .deploy/Dockerfile create mode 100644 .deploy/docker-compose.yml diff --git a/.deploy/Dockerfile b/.deploy/Dockerfile new file mode 100644 index 0000000..7d7ac4f --- /dev/null +++ b/.deploy/Dockerfile @@ -0,0 +1,4 @@ +FROM openjdk:17 +ARG JAR_FILE=/build/libs/mookive_backend-0.0.1-SNAPSHOT.jar +COPY ${JAR_FILE} mookive.jar +ENTRYPOINT ["java","-jar","/mookive.jar", "--spring.profiles.active=prod"] \ No newline at end of file diff --git a/.deploy/docker-compose.yml b/.deploy/docker-compose.yml new file mode 100644 index 0000000..ef73b25 --- /dev/null +++ b/.deploy/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3' +services: + spring: + container_name: mookive + image: kimseoyoung/mookive + expose: + - 8080 + ports: + - 80:8080 \ No newline at end of file