diff --git a/Dockerfile b/Dockerfile index 76ab0ca..b8d6a81 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 \ @@ -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"]