Skip to content

Commit

Permalink
feat : updated Dockerfile-9
Browse files Browse the repository at this point in the history
  • Loading branch information
surjendu104 committed Feb 13, 2024
1 parent 08105e6 commit 6a7bf3a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ RUN apt-get update && \
apt-get install -y openjdk-11-jre


RUN service mongodb start
RUN sleep 5
EXPOSE 27017 8080
ADD target/url-shortener-images.jar url-shortener-images.jar
ENTRYPOINT ["mongod", "--fork", "--logpath", "/var/log/mongodb/mongod.log", "&&", "java", "-jar", "/url-shortener-images.jar"]

0 comments on commit 6a7bf3a

Please sign in to comment.