Add uv.lock & fix user

This commit is contained in:
Jelmer Draaijer 2024-10-22 20:34:57 +02:00
parent 40381e2648
commit b27d2954c2
2 changed files with 5 additions and 0 deletions

View File

@ -18,6 +18,7 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
# Requirements are installed here to ensure they will be cached.
RUN --mount=type=cache,target=/root/.cache/uv \
--mount=type=bind,source=pyproject.toml,target=pyproject.toml \
--mount=type=bind,source=uv.lock,target=uv.lock \
uv sync --no-install-project
ADD . ${APP_HOME}

View File

@ -27,6 +27,10 @@ RUN npm run build
FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim AS python-build-stage
ENV UV_COMPILE_BYTECODE=1 UV_LINK_MODE=copy
ARG APP_HOME=/app
WORKDIR ${APP_HOME}
# Install apt packages
RUN apt-get update && apt-get install --no-install-recommends -y \
# dependencies for building Python packages