Skip to content

Commit 6bb3735

Browse files
committed
Adopt hatch-vcs for git-tag-driven versioning
1 parent 03ec089 commit 6bb3735

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,18 @@ RUN DOCKER_ARCH=$(case "${TARGETARCH}" in \
3535
WORKDIR /app
3636

3737
COPY 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

4645
COPY . .
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).
4951
ENV HOME=/home/app
5052
RUN mkdir -p /home/app && chmod 777 /home/app

0 commit comments

Comments
 (0)