reverted dockerfile changes to original state
FROM alpine:3.14 AS java8
-ENV JAVA_OPTS="-Xms512m -Xmx2048m"
-
WORKDIR app
RUN apk update && \
apk upgrade && \
apk upgrade
RUN apk add openjdk8=8.302.08-r2 --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community
COPY build/libs/*.jar cx-flow.jar
-ENTRYPOINT exec java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -Dspring.profiles.active=web -jar cx-flow.jar
+ENTRYPOINT ["java", "-Xms512m", "-Xmx2048m", "-Djava.security.egd=file:/dev/./urandom", "-Dspring.profiles.active=web", "-jar", "cx-flow.jar"]
EXPOSE 8080
FROM alpine:3.14 AS java11
-ENV JAVA_OPTS="-Xms512m -Xmx2048m"
-
WORKDIR app
RUN apk update && \
apk upgrade
RUN apk add openjdk11=11.0.13_p8-r0 --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community
COPY build/libs/java11/*.jar cx-flow.jar
-ENTRYPOINT exec java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -Dspring.profiles.active=web -jar cx-flow.jar
+ENTRYPOINT ["java", "-Xms512m", "-Xmx2048m","-Djava.security.egd=file:/dev/./urandom", "-Dspring.profiles.active=web", "-jar", "cx-flow.jar"]
EXPOSE 8080
FROM alpine:3.14 AS cxgo8
-ENV JAVA_OPTS="-Xms512m -Xmx2048m"
-
WORKDIR app
RUN apk update && \
apk upgrade
RUN apk add openjdk8=8.302.08-r2 --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community
COPY build/libs/cxgo/*.jar cx-flow.jar
-ENTRYPOINT exec java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -Dspring.profiles.active=cxgo -jar cx-flow.jar
+ENTRYPOINT ["java", "-Xms512m", "-Xmx2048m", "-Djava.security.egd=file:/dev/./urandom", "-Dspring.profiles.active=cxgo", "-jar", "cx-flow.jar"]
EXPOSE 8080
