refactor entrypoint to include defaults, other overrides may be passed via docker run COMMAND
@@ -4,8 +4,7 @@ WORKDIR app
RUN apk update && \
apk upgrade
COPY build/libs/*.jar app/cx-flow.jar
-ENTRYPOINT ["java"]
-CMD ["-Xms512m", "-Xmx2048m","-Djava.security.egd=file:/dev/./urandom", "-Dspring.profiles.active=web", "-jar", "app/cx-flow.jar"]
+ENTRYPOINT ["java", "-Xms512m", "-Xmx2048m", "-Djava.security.egd=file:/dev/./urandom", "-Dspring.profiles.active=web", "-jar", "app/cx-flow.jar"]
EXPOSE 8080
@@ -15,6 +14,5 @@ WORKDIR app
RUN apt update && \
apt upgrade -y
COPY build/libs/java11/*.jar app/cx-flow.jar
-ENTRYPOINT ["java"]
-CMD ["-Xms512m", "-Xmx2048m","-Djava.security.egd=file:/dev/./urandom", "-Dspring.profiles.active=web", "-jar", "app/cx-flow.jar"]
+ENTRYPOINT ["java", "-Xms512m", "-Xmx2048m","-Djava.security.egd=file:/dev/./urandom", "-Dspring.profiles.active=web", "-jar", "app/cx-flow.jar"]
EXPOSE 8080
