-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
29 lines (22 loc) · 1.2 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-modmail
# ----------------------------------
FROM python:3.9-slim-bullseye
LABEL author="DevOps Team at Sparked Host" maintainer="devops@sparkedhost.com"
RUN apt update \
&& apt install -y gnupg build-essential git netcat ffmpeg iproute2 curl tzdata wget \
&& 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 \
libtiff5-dev libjpeg62-turbo-dev libopenjp2-7-dev zlib1g-dev \
libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python3-tk \
libharfbuzz-dev libfribidi-dev libxcb1-dev \
&& useradd -d /home/container -m container -s /bin/bash \
&& /usr/local/bin/python -m pip install --upgrade pip
USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container
COPY ./modmail/entrypoint.sh /entrypoint.sh
CMD ["/bin/bash", "/entrypoint.sh"]