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