-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (27 loc) · 1.15 KB
/
Dockerfile
File metadata and controls
29 lines (27 loc) · 1.15 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
FROM mcr.microsoft.com/devcontainers/javascript-node:20
# Install MySQL client, Redis CLI, mongosh, and MongoDB database tools
RUN apt-get update && \
apt-get install -y --no-install-recommends \
ca-certificates \
curl \
default-mysql-client \
git \
gnupg \
lsb-release \
procps \
redis-tools \
wget && \
wget https://downloads.mongodb.com/compass/mongosh-2.1.1-linux-x64.tgz && \
tar -zxvf mongosh-2.1.1-linux-x64.tgz && \
cp -R mongosh-2.1.1-linux-x64/bin/* /usr/local/bin/ && \
rm -rf mongosh-2.1.1-linux-x64.tgz mongosh-2.1.1-linux-x64 && \
mkdir -p /etc/apt/keyrings && \
curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc | gpg --dearmor -o /etc/apt/keyrings/mongodb.gpg && \
echo "deb [signed-by=/etc/apt/keyrings/mongodb.gpg] http://repo.mongodb.org/apt/debian $(lsb_release -cs)/mongodb-org/7.0 main" | \
tee /etc/apt/sources.list.d/mongodb-org-7.0.list && \
apt-get update && \
apt-get install -y --no-install-recommends mongodb-database-tools && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
ENV SHELL=/bin/bash
WORKDIR /workspace