remove extra /app in container path
@@ -3,8 +3,8 @@ FROM openjdk:8-jre-alpine AS java8
WORKDIR app
RUN apk update && \
apk upgrade
-COPY build/libs/*.jar app/cx-flow.jar
-ENTRYPOINT ["java", "-Xms512m", "-Xmx2048m", "-Djava.security.egd=file:/dev/./urandom", "-Dspring.profiles.active=web", "-jar", "app/cx-flow.jar"]
+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
@@ -13,6 +13,6 @@ FROM openjdk:11-jre-slim AS java11
WORKDIR app
RUN apt update && \
apt upgrade -y
-COPY build/libs/java11/*.jar app/cx-flow.jar
-ENTRYPOINT ["java", "-Xms512m", "-Xmx2048m","-Djava.security.egd=file:/dev/./urandom", "-Dspring.profiles.active=web", "-jar", "app/cx-flow.jar"]
+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
