diff --git a/Dockerfile b/Dockerfile index bc52857..e2a68d3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,9 @@ FROM openjdk:19 ARG JAR_FILE=build/libs/User-0.0.1-SNAPSHOT.jar ARG MONGODB_URI=mongodb://localhost:27017 -ARG PORT=8080 +ARG APPLICATION_PORT=8080 ENV MONGODB_URI=$MONGODB_URI -ENV PORT=$PORT -EXPOSE PORT +ENV APPLICATION_PORT=$APPLICATION_PORT +EXPOSE APPLICATION_PORT COPY ${JAR_FILE} app.jar -ENTRYPOINT ["java","-jar","/app.jar"] \ No newline at end of file +ENTRYPOINT ["java","-jar","/app.jar"]