From ffd925814e7d7f927f3bbfe7c305e770fe964347 Mon Sep 17 00:00:00 2001 From: Quentin Date: Sat, 14 Sep 2024 14:42:52 +0200 Subject: [PATCH] Fix generated apps: Docker image can't start --- .../server/springboot/docker/Dockerfile-gradle.mustache | 2 +- .../server/springboot/docker/Dockerfile-maven.mustache | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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}}