Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mertkaanguzel authored Jan 7, 2024
1 parent 5fb8091 commit f1e1008
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ WORKDIR /usr/src/myapp
# COPY . .

COPY pom.xml mvnw ./
RUN chmod +x ./mvnw
COPY .mvn .mvn
RUN ./mvnw dependency:resolve

Expand All @@ -15,4 +16,4 @@ RUN ./mvnw package

ENTRYPOINT [ "java" ]

CMD [ "-jar", "./target/medium-clone.jar" ]
CMD [ "-jar", "./target/medium-clone.jar" ]

0 comments on commit f1e1008

Please sign in to comment.