From 3323aa6a81339ca2ef02da0b68dcf27f1a40f4bc Mon Sep 17 00:00:00 2001 From: Harsh Verma <55652117+Harsh3305@users.noreply.github.com> Date: Wed, 29 Mar 2023 16:09:00 +0530 Subject: [PATCH] Update Dockerfile (#45) --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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"]