KEriks 71e69719d7 Updated to discord bot and its docker
gitignore

dockerignore

Formatting

Requirement update, code styling

Gitignore
2021-07-26 17:32:31 +03:00

14 lines
356 B
Docker

FROM python:3.9-slim
WORKDIR /app
RUN groupadd -g 1000 discordbot \
&& useradd -u 1000 -g 1000 discordbot \
&& mkdir /home/discordbot \
&& chown -R discordbot:discordbot /app \
&& chown -R discordbot:discordbot /home/discordbot
USER discordbot
COPY requirements.txt /app/requirements.txt
RUN pip install -r requirements.txt
CMD python discord_bot.py