Skip to content

Commit

Permalink
Update Dockerfile (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
Harsh3305 authored Mar 29, 2023
1 parent 00b86c1 commit 3323aa6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
ENTRYPOINT ["java","-jar","/app.jar"]

0 comments on commit 3323aa6

Please sign in to comment.