forked from nonchris/discord-fury
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (19 loc) · 656 Bytes
/
Dockerfile
File metadata and controls
25 lines (19 loc) · 656 Bytes
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
ARG ARCH=
FROM ${ARCH}ubuntu:20.04
COPY ./Dockerfile.yml /root/.ansible/site.yml
RUN apt update && \
apt install -y ansible aptitude python3-apt && \
ansible-playbook /root/.ansible/site.yml && \
apt-get remove -y --purge ansible python3-apt && \
apt-get autoremove -y && \
apt-get autoclean && \
apt-get clean
VOLUME /app/
WORKDIR /app
COPY src/ /app/
ENV run=fury-bot.py \
TZ=Europe/Berlin
CMD groupadd python -g ${GID:-1000} || echo "Group already exists." && \
useradd -u ${UID:-1000} -g ${GID:-1000} python || echo "User already exists." && \
chown -R python:python /app && \
su python -c 'python3 $run'