roboluke-tasks/Dockerfile
Luke Tainton 70c7a4831d
Revert "Update python Docker tag to v3.12 (#102)" (#103)
This reverts commit 1ce741dcdad617c1173a78e35fb1d5f5e900cc73.
2023-10-09 15:42:51 +01:00

19 lines
551 B
Docker

FROM python:3.11-slim
LABEL maintainer="Luke Tainton <luke@tainton.uk>"
LABEL org.opencontainers.image.source="https://github.com/luketainton/roboluke-tasks"
USER root
ENV PYTHONPATH="/run:/usr/local/lib/python3.11/lib-dynload:/usr/local/lib/python3.11/site-packages:/usr/local/lib/python3.11"
WORKDIR /run
RUN mkdir -p /.local && \
chmod -R 777 /.local && \
pip install -U pip
COPY requirements.txt /run/requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
ENTRYPOINT ["python3", "-B", "-m", "app.main"]
COPY app /run/app