-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
28 lines (21 loc) · 955 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
FROM python:latest
#RUN python3 py3-pip py3-lxml py3-yarl py3-chardet py3-aiohttp py3-attrs
ENV PYTHONUNBUFFERED 1
RUN apt update -y \
&& apt dist-upgrade -y \
&& apt install clang-format -y
RUN adduser --disabled-password --gecos "" bettercbot
USER bettercbot
WORKDIR /home/bettercbot
ENV PATH="/home/bettercbot/.local/bin:$PATH"
COPY --chown=bettercbot:bettercbot src/cppref src/cppref
COPY --chown=bettercbot:bettercbot requirements.txt requirements.txt
RUN pip install --user -r requirements.txt
COPY --chown=bettercbot:bettercbot token.txt token.txt
COPY --chown=bettercbot:bettercbot badwords.txt badwords.txt
COPY --chown=bettercbot:bettercbot src/util src/util
COPY --chown=bettercbot:bettercbot src/cogs/ src/cogs
COPY --chown=bettercbot:bettercbot src/backend src/backend
COPY --chown=bettercbot:bettercbot src/config.py src/config.py
COPY --chown=bettercbot:bettercbot src/__main__.py src/__main__.py
CMD ["python", "-m", "src"]