roboluke-tasks/Dockerfile
Luke Tainton 359868cecd
All checks were successful
CI / ci (pull_request) Successful in 1m37s
feat(packaging): switch to gitea and uv
2025-01-03 17:52:10 +00:00

27 lines
608 B
Docker

FROM python:3.13-slim
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/"
WORKDIR /run
RUN mkdir -p /.local && \
chmod -R 777 /.local && \
pip install -U pip uv==0.5.14
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
ENTRYPOINT ["python3", "-B", "-m", "app.main"]
ARG version="dev"
ENV APP_VERSION=$version
COPY app /run/app