added JAVA_HOME env variable in dockerfile
* added JAVA_HOME env variable in dockerfile
added JAVA_HOME env variable in dockerfile
* changed openjdk version from 14_p9 to 15_p10
changed openjdk version from 14_p9 to 15_p10
@@ -5,6 +5,7 @@ RUN apk update && \
apk upgrade && \
apk upgrade
RUN apk add openjdk8=8.302.08-r2 --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community
+ENV JAVA_HOME=/usr/lib/jvm/java-1.8-openjdk
COPY build/libs/*.jar cx-flow.jar
ENTRYPOINT ["java", "-Xms512m", "-Xmx2048m", "-Djava.security.egd=file:/dev/./urandom", "-Dspring.profiles.active=web", "-jar", "cx-flow.jar"]
EXPOSE 8080
@@ -16,6 +17,7 @@ WORKDIR app
RUN apk update && \
apk upgrade
RUN apk add openjdk11=11.0.15_p10-r0 --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community
+ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk
COPY build/libs/java11/*.jar cx-flow.jar
ENTRYPOINT ["java", "-Xms512m", "-Xmx2048m","-Djava.security.egd=file:/dev/./urandom", "-Dspring.profiles.active=web", "-jar", "cx-flow.jar"]
EXPOSE 8080
@@ -26,6 +28,7 @@ WORKDIR app
RUN apk update && \
apk upgrade
RUN apk add openjdk8=8.302.08-r2 --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community
+ENV JAVA_HOME=/usr/lib/jvm/java-1.8-openjdk
COPY build/libs/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
