Skip to content

Commit

Permalink
Added Dockerfile (#6)
Browse files Browse the repository at this point in the history
Fixed #5
  • Loading branch information
Harsh3305 authored Jan 21, 2023
1 parent ae20d6f commit 61a12e6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM openjdk:19
ARG JAR_FILE=build/libs/Product-0.0.1-SNAPSHOT.jar
ARG MONGODB_URI=mongodb://localhost:27017
ARG PORT=8080
ENV MONGODB_URI=$MONGODB_URI
ENV PORT=$PORT
EXPOSE PORT 27017
COPY ${JAR_FILE} app.jar
ENTRYPOINT ["java","-jar","/app.jar"]

0 comments on commit 61a12e6

Please sign in to comment.