-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
46 lines (38 loc) · 1.32 KB
/
Dockerfile
File metadata and controls
46 lines (38 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
FROM debian:bookworm-20260421-slim
LABEL org.opencontainers.image.title="RTSP MongoDB Shell"
LABEL org.opencontainers.image.authors="RTSP <docker@rtsp.us>"
LABEL org.opencontainers.image.source="https://github.com/rtsp/docker-mongosh"
LABEL org.opencontainers.image.licenses="Apache-2.0"
RUN set -x && apt-get update && apt-get --yes --no-install-recommends install \
bash \
ca-certificates \
coreutils \
curl \
diffutils \
git \
gnupg \
grep \
iputils-ping \
jq \
less \
mawk \
nano \
openssl \
rsync \
sed \
telnet \
vim-tiny \
wget \
&& rm -rvf /var/lib/apt/lists/*
ARG MONGODB_VERSION=7.0
ARG MONGOSH_VERSION=2.8.2
RUN set -x \
&& curl -fsSL https://www.mongodb.org/static/pgp/server-${MONGODB_VERSION}.asc | gpg --dearmor -o /etc/apt/trusted.gpg.d/mongodb-org-${MONGODB_VERSION}.gpg \
&& echo "deb https://repo.mongodb.org/apt/debian bullseye/mongodb-org/${MONGODB_VERSION} main" > /etc/apt/sources.list.d/mongodb-org-${MONGODB_VERSION}.list
ARG TARGETPLATFORM
RUN set -x && apt-get update && apt-get --yes --no-install-recommends install \
mongodb-mongosh=${MONGOSH_VERSION} \
$( [ "$TARGETPLATFORM" = "linux/amd64" ] && echo mongodb-database-tools) \
&& rm -rvf /var/lib/apt/lists/*
COPY files/ /root/
CMD ["/bin/sleep", "infinity"]