Skip to content

Commit

Permalink
Update Dockerfile (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
Harsh3305 authored Mar 29, 2023
1 parent 3323aa6 commit 271c5a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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 APPLICATION_PORT=8080

ENV MONGODB_URI=$MONGODB_URI
ENV APPLICATION_PORT=$APPLICATION_PORT
EXPOSE APPLICATION_PORT
ENV APPLICATION_PORT=8080
EXPOSE 8080
COPY ${JAR_FILE} app.jar
ENTRYPOINT ["java","-jar","/app.jar"]

0 comments on commit 271c5a7

Please sign in to comment.