forked from williamjacksn/wormgas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
22 lines (15 loc) · 815 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM python:3.10.2-alpine3.15
RUN /usr/sbin/adduser -g python -D 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 APP_VERSION="2021.6" \
PYTHONUNBUFFERED="1"
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" \
org.opencontainers.image.version="${APP_VERSION}"
COPY --chown=python:python run.py /home/python/wormgas/run.py
COPY --chown=python:python wormgas /home/python/wormgas/wormgas