diff --git a/src/main/resources/generator/server/springboot/docker/Dockerfile-gradle.mustache b/src/main/resources/generator/server/springboot/docker/Dockerfile-gradle.mustache index fa90fe18010..7fdcd95e192 100644 --- a/src/main/resources/generator/server/springboot/docker/Dockerfile-gradle.mustache +++ b/src/main/resources/generator/server/springboot/docker/Dockerfile-gradle.mustache @@ -11,5 +11,5 @@ RUN \ ENV SPRING_OUTPUT_ANSI_ENABLED=ALWAYS \ JAVA_OPTS="" -ENTRYPOINT ["sh", "-c", "exec java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /code/*.jar"] +ENTRYPOINT exec java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /code/*.jar EXPOSE {{serverPort}} diff --git a/src/main/resources/generator/server/springboot/docker/Dockerfile-maven.mustache b/src/main/resources/generator/server/springboot/docker/Dockerfile-maven.mustache index 03e625fc61c..fbe802d9d89 100644 --- a/src/main/resources/generator/server/springboot/docker/Dockerfile-maven.mustache +++ b/src/main/resources/generator/server/springboot/docker/Dockerfile-maven.mustache @@ -11,5 +11,5 @@ RUN \ ENV SPRING_OUTPUT_ANSI_ENABLED=ALWAYS \ JAVA_OPTS="" -ENTRYPOINT ["sh", "-c", "exec java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /code/*.jar"] +ENTRYPOINT exec java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /code/*.jar EXPOSE {{serverPort}}