diff --git a/Dockerfile b/Dockerfile index 1c07002..39d11cb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM eclipse-temurin:17-jre WORKDIR /workspace/app -ENV PORT 8080 +ENV PORT=8080 EXPOSE 8080 COPY target/*.war /workspace/app/app.war -ENTRYPOINT exec java $JAVA_OPTS -jar app.war +ENTRYPOINT ["java","-jar","app.war"] diff --git a/Dockerfile.full-build b/Dockerfile.full-build index 595527d..bef3c44 100644 --- a/Dockerfile.full-build +++ b/Dockerfile.full-build @@ -17,9 +17,9 @@ RUN --mount=type=cache,target=/root/.m2 \ FROM eclipse-temurin:17-jre WORKDIR /workspace/app -ENV PORT 8080 +ENV PORT=8080 EXPOSE 8080 COPY --from=build /tmp/target/*.war /workspace/app/app.war -ENTRYPOINT exec java $JAVA_OPTS -jar app.war +ENTRYPOINT ["java","-jar","app.war"]