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