From 610c3f7e79a35bb38d687f4bd09e62ceb16bb5d9 Mon Sep 17 00:00:00 2001 From: kyeong-hyeok Date: Sat, 9 Sep 2023 15:44:38 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20Docker=20=ED=8C=8C=EC=9D=BC=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 --- Dockerfile | 4 ++++ docker-compose.yml | 16 ++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b977eae --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM openjdk:17-jdk +ARG JAR_FILE=build/libs/*.jar +COPY ${JAR_FILE} /app.jar +ENTRYPOINT ["java", "-jar", "/app.jar"] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..4298892 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,16 @@ +version: '3' + +services: + springboot: + container_name: spring-dev + image: pcsbteam/pcs:latest-dev + ports: + - 8080:8080 + environment: + SPRING_PROFILES_ACTIVE : dev-env # 사용할 profile 지정 + networks: + - pcs_network + +networks: + pcs_network: + driver: bridge \ No newline at end of file