Skip to content

Commit

Permalink
feat : updated Dockerfile and workflow.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
surjendu104 committed Feb 13, 2024
1 parent 7c809d1 commit ffee9cf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
uses: mr-smithers-excellent/docker-build-push@v6
with:
image: surjendu104/url-shortener-images
tags: v1, latest
tags: v2, latest
registry: docker.io
dockerfile: Dockerfile
username: ${{ secrets.DOCKER_USERNAME }}
Expand Down
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
RUN apt-get update
RUN apt-get install -y mongodb
RUN apt-get clean
RUN rm -rf /var/lib/apt/lists/*
RUN service mongodb start
RUN sleep 5

FROM openjdk:17-jdk
EXPOSE 8080
ADD target/url-shortener-images.jar url-shortener-images.jar
Expand Down

0 comments on commit ffee9cf

Please sign in to comment.