-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
29 lines (21 loc) · 1.12 KB
/
Dockerfile
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
# ----------------------------------
# Sparked Host Custom Docker Image
# Image: ghcr.io/sparkedhost/images:bot-bastion
# ----------------------------------
FROM node:18-bullseye
LABEL author="DevOps Team at Sparked Host" maintainer="devops@sparkedhost.com"
## install mongo
RUN wget -qO - https://www.mongodb.org/static/pgp/server-6.0.asc | apt-key add - \
&& echo "deb http://repo.mongodb.org/apt/debian bullseye/mongodb-org/6.0 main" | tee /etc/apt/sources.list.d/mongodb-org-6.0.list \
&& apt update \
&& apt install -y mongodb-org mongodb-org-server mongodb-org-shell mongodb-org-mongos mongodb-org-tools \
&& apt install -y python3 build-essential git libtool netcat ffmpeg iproute2 curl tzdata \
&& npm install -g npm@latest \
&& useradd -d /home/container -m container -s /bin/bash
ADD ca.crt /usr/local/share/ca-certificates/sparked-ca.crt
RUN chmod 644 /usr/local/share/ca-certificates/sparked-ca.crt && update-ca-certificates
USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container
COPY ./bastion/entrypoint.sh /entrypoint.sh
CMD ["/bin/bash", "/entrypoint.sh"]