-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
23 lines (16 loc) · 850 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
FROM python:3.12-slim
RUN /usr/sbin/useradd --create-home --shell /bin/bash --user-group python
USER python
RUN /usr/local/bin/python -m venv /home/python/venv
COPY --chown=python:python requirements.txt /home/python/wormgas/requirements.txt
RUN /home/python/venv/bin/pip install --no-cache-dir --requirement /home/python/wormgas/requirements.txt
ENV PATH="/home/python/venv/bin:${PATH}" \
PYTHONDONTWRITEBYTECODE="1" \
PYTHONUNBUFFERED="1" \
TZ="Etc/UTC"
ENTRYPOINT ["/home/python/venv/bin/python"]
CMD ["/home/python/wormgas/run.py"]
LABEL org.opencontainers.image.authors="William Jackson <[email protected]>" \
org.opencontainers.image.source="https://github.com/williamjacksn/wormgas"
COPY --chown=python:python run.py /home/python/wormgas/run.py
COPY --chown=python:python wormgas /home/python/wormgas/wormgas