From e1ed8a5f70b0f9fe14b24cc670612582d7a4aa4c Mon Sep 17 00:00:00 2001 From: Wo-ogie Date: Wed, 28 Feb 2024 16:46:10 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20Dockerfile=20=EC=9E=91=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b8273e4 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,6 @@ +FROM openjdk:17-jdk-slim +WORKDIR /spring +ARG JAR_FILE=/build/libs/hertz-*.jar +COPY ${JAR_FILE} /spring/app.jar +EXPOSE 8080 +ENTRYPOINT ["java", "-Dspring.profiles.active=prod", "-Xms512m", "-Xmx2048m", "-jar", "/spring/app.jar"] \ No newline at end of file