Skip to content
This repository was archived by the owner on Oct 30, 2026. It is now read-only.

Commit f911fbb

Browse files
Merge pull request #3824 from VWS-Python/codex/install-runtime-server-distributions-20261029
Run container images from installed distributions
2 parents 8dd3fdf + f70e504 commit f911fbb

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

‎server/Dockerfile‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/astral-sh/uv:0.13.1-python3.15-trixie-slim AS base
1+
FROM ghcr.io/astral-sh/uv:0.13.1-python3.15-trixie-slim AS runtime
22
# We set this pretend version as we do not have Git in our path, and we do
33
# not care enough about having the version correct inside the Docker container
44
# to install it.
@@ -18,12 +18,17 @@ ENV UV_PROJECT_ENVIRONMENT=/app/docker_venvs/.venv
1818
ENV PATH="$UV_PROJECT_ENVIRONMENT/bin:$PATH"
1919

2020
WORKDIR /app
21+
22+
FROM runtime AS builder
2123
# Install the locked dependencies before copying the source, so that
2224
# source edits do not invalidate the dependency layer.
2325
COPY --chown=10001:10001 pyproject.toml uv.lock /app/
2426
RUN uv sync --frozen --no-cache --no-dev --extra server --no-install-workspace
2527
COPY --chown=10001:10001 . /app
26-
RUN uv sync --locked --no-cache --no-dev --extra server
28+
RUN uv sync --locked --no-cache --no-dev --extra server --no-editable
29+
30+
FROM runtime AS base
31+
COPY --from=builder --chown=10001:10001 /app/docker_venvs/.venv /app/docker_venvs/.venv
2732
EXPOSE 5000
2833
ENTRYPOINT ["python"]
2934
HEALTHCHECK --interval=1s --timeout=10s --start-period=5s --retries=3 CMD ["python", "-m", "vws_mock_server.healthcheck"]

0 commit comments

Comments
 (0)