Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
identw committed Mar 18, 2024
1 parent 1ab6563 commit 3f4ddb0
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
Expand Up @@ -2,7 +2,6 @@ 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 @@ -19,16 +18,18 @@ RUN apt-get update && \
libcurl4 \
openssl \
liblzma5 \
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 && \
curl -o mongodb-mongosh_2.2.0_amd64.deb 'https://repo.mongodb.org/apt/ubuntu/dists/jammy/mongodb-org/5.0/multiverse/binary-amd64/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/* && \
rm -fv /bin/sh && \
ln -s -v /bin/bash /bin/sh
ln -s -v /bin/bash /bin/sh && \
mkdir /user

COPY ./.bash_profile /root/
COPY ./.bash_profile /user/
RUN chmod 755 /user; chmod 644 /user/.bash_profile
COPY ./entrypoint.sh /

ENTRYPOINT ["/entrypoint.sh"]

0 comments on commit 3f4ddb0

Please sign in to comment.