14 lines
356 B
Docker
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
|