aronabot/Dockerfile

12 lines
282 B
Docker
Raw Normal View History

2024-09-28 08:45:47 +00:00
FROM python:3.12-alpine
RUN set -ex; \
mkdir -p /app; \
chown -R nobody:nobody /app
COPY requirements.txt /tmp/requirements.txt
RUN set -ex; \
pip install -r /tmp/requirements.txt; \
rm /tmp/requirements.txt
COPY *.py /app/
WORKDIR /app
USER nobody
CMD ["./main.py"]