File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,16 +35,18 @@ RUN DOCKER_ARCH=$(case "${TARGETARCH}" in \
3535WORKDIR /app
3636
3737COPY pyproject.toml uv.lock README.md ./
38-
39- ENV SETUPTOOLS_SCM_PRETEND_VERSION=${VERSION}
38+ RUN mkdir -p sapporo
4039
4140# Named volume inherits image permissions on first creation;
4241# make writable so arbitrary UID (dev) can run uv commands.
43- RUN uv sync --frozen --all-extras && \
42+ RUN uv sync --frozen --all-extras --no-install-project && \
4443 chmod -R a+rwX .venv
4544
4645COPY . .
4746
47+ # Install the project with version injected from the build arg.
48+ RUN SETUPTOOLS_SCM_PRETEND_VERSION=${VERSION} uv sync --frozen --all-extras
49+
4850# Writable home for arbitrary UID (dev containers use user: UID:GID).
4951ENV HOME=/home/app
5052RUN mkdir -p /home/app && chmod 777 /home/app
You can’t perform that action at this time.
0 commit comments