fix(docker): update Python version in Dockerfile and adjust user permissions (#438)
All checks were successful
Sonar / ci (push) Successful in 53s

Co-authored-by: Copilot <copilot@github.com>
Reviewed-on: #438
This commit was merged in pull request #438.
This commit is contained in:
2026-04-17 18:46:26 +00:00
parent 02f1ebdecf
commit 3f0df932e0

View File

@@ -3,12 +3,14 @@ LABEL maintainer="Luke Tainton <luke@tainton.uk>"
LABEL org.opencontainers.image.source="https://github.com/luketainton/pypilot" LABEL org.opencontainers.image.source="https://github.com/luketainton/pypilot"
USER root USER root
ENV PYTHONPATH="/run:/usr/local/lib/python3.13/lib-dynload:/usr/local/lib/python3.13/site-packages:/usr/local/lib/python3.13" RUN useradd -r -s /sbin/nologin -M user
ENV PYTHONPATH="/run:/usr/local/lib/python3.14/lib-dynload:/usr/local/lib/python3.14/site-packages:/usr/local/lib/python3.14"
WORKDIR /run WORKDIR /run
RUN mkdir -p /.local && \ RUN mkdir -p /.local && \
chmod -R 777 /.local && \ chmod -R 777 /.local && \
pip install -U pip uv==0.5.14 pip install --no-cache-dir -U pip uv==0.5.14
COPY pyproject.toml /run/pyproject.toml COPY pyproject.toml /run/pyproject.toml
COPY uv.lock /run/uv.lock COPY uv.lock /run/uv.lock
@@ -23,3 +25,6 @@ ARG version="dev"
ENV APP_VERSION=$version ENV APP_VERSION=$version
COPY app /run/app COPY app /run/app
RUN chown -R user:user /run
USER user