-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from surjendu104/v1-rollback
Rollback to v1
- Loading branch information
Showing
3 changed files
with
4 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,4 @@ | ||
FROM ubuntu:latest | ||
|
||
RUN apt-get update && \ | ||
apt-get upgrade -y && \ | ||
apt-get install -y gnupg curl | ||
|
||
RUN curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc | gpg --dearmor -o /usr/share/keyrings/mongodb-server-7.0.gpg | ||
RUN echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-7.0.list | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y mongodb-org | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y openjdk-17-jre | ||
|
||
|
||
EXPOSE 27017 8080 | ||
FROM openjdk:17-jdk | ||
EXPOSE 8080 | ||
ADD target/url-shortener-images.jar url-shortener-images.jar | ||
|
||
COPY start.sh /start.sh | ||
RUN chmod +x /start.sh | ||
CMD ["/start.sh"] | ||
ENTRYPOINT ["java","-jar","/url-shortener-images.jar"] |