roboluke-tasks/Dockerfile

27 lines
608 B
Docker
Raw Permalink Normal View History

FROM python:3.13-slim
2023-04-05 21:57:31 +02:00
LABEL maintainer="Luke Tainton <luke@tainton.uk>"
USER root
ENV PYTHONPATH="/run:/usr/local/lib/python3.11/lib-dynload:/usr/local/lib/python3.11/site-packages:/usr/local/lib/python3.11"
ENV UV_PROJECT_ENVIRONMENT="/usr/local/"
2023-04-05 21:57:31 +02:00
WORKDIR /run
RUN mkdir -p /.local && \
chmod -R 777 /.local && \
pip install -U pip uv==0.5.14
2023-04-05 21:57:31 +02:00
COPY pyproject.toml /run/pyproject.toml
COPY uv.lock /run/uv.lock
# needed for PDM build
COPY README.md /run/README.md
RUN uv sync --frozen
2023-04-05 21:57:31 +02:00
ENTRYPOINT ["python3", "-B", "-m", "app.main"]
2024-04-21 17:52:55 +02:00
ARG version="dev"
ENV APP_VERSION=$version
2023-04-05 21:57:31 +02:00
COPY app /run/app