Skip to content

Commit

Permalink
mongosh
Browse files Browse the repository at this point in the history
  • Loading branch information
identw committed Mar 18, 2024
1 parent c7fd682 commit febb728
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
FROM docker.io/ubuntu:20.04
FROM docker.io/ubuntu:22.04
LABEL org.opencontainers.image.source https://github.com/orangeappsru/db-connect

RUN apt-get update && \
apt search mongodb && \
apt-get install --no-install-recommends -y \
vim \
bash-completion \
Expand All @@ -18,9 +19,9 @@ RUN apt-get update && \
libcurl4 \
openssl \
liblzma5 \
wget && \
wget https://repo.mongodb.org/apt/ubuntu/dists/focal/mongodb-org/5.0/multiverse/binary-amd64/mongodb-org-shell_5.0.22_amd64.deb && \
dpkg -i mongodb-org-shell_5.0.22_amd64.deb && \
curl 'https://repo.mongodb.org/apt/ubuntu/dists/jammy/mongodb-org/5.0/multiverse/binary-amd64/mongodb-mongosh_2.2.0_amd64.deb' -O mongodb-mongosh_2.2.0_amd64.deb && \
dpkg -i mongodb-mongosh_2.2.0_amd64.deb && \
rm -fv mongodb-mongosh_2.2.0_amd64.deb && \
apt-get autoclean && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
Expand Down

0 comments on commit febb728

Please sign in to comment.