-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
31 lines (25 loc) · 887 Bytes
/
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
30
31
FROM phasecorex/user-python:3.8-slim
RUN set -eux; \
# Install dependencies
apt-get update; \
apt-get install -y --no-install-recommends \
# Red-DiscordBot required
git \
# ssh repo support
openssh-client \
; \
rm -rf /var/lib/apt/lists/*; \
# Set up all three config locations
mkdir -p /root/.config/Red-DiscordBot; \
ln -s /data/config.json /root/.config/Red-DiscordBot/config.json; \
mkdir -p /usr/local/share/Red-DiscordBot; \
ln -s /data/config.json /usr/local/share/Red-DiscordBot/config.json; \
mkdir -p /config/.config/Red-DiscordBot; \
ln -s /data/config.json /config/.config/Red-DiscordBot/config.json
VOLUME /data
COPY root/ /
CMD ["start-redbot.sh"]
ARG PIP_REDBOT_VERSION=Red-DiscordBot
RUN set -eux; \
# Install requested version
python -m pip install -U "${PIP_REDBOT_VERSION}"