Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions src/mock_vws/_flask_server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM python:3.13-slim AS base
FROM debian:bookworm-slim AS base
COPY --from=ghcr.io/astral-sh/uv:0.10.4 /uv /uvx /bin/
# We set this pretend version as we do not have Git in our path, and we do
# not care enough about having the version correct inside the Docker container
# to install it.
ENV SETUPTOOLS_SCM_PRETEND_VERSION=0.0.0
# Avoid using root user.
# This avoids having to use ``--root-user-action=ignore`` with pip.
RUN useradd -ms /bin/bash myuser
USER myuser
COPY --chown=myuser:myuser . /app
Expand All @@ -15,9 +15,7 @@ ENV UV_PROJECT_ENVIRONMENT=/app/docker_venvs/.venv
ENV PATH="$UV_PROJECT_ENVIRONMENT/bin:$PATH"

WORKDIR /app
RUN python3 -m venv $UV_PROJECT_ENVIRONMENT && \
pip install --no-cache-dir uv==0.10.4 && \
uv sync --no-cache
RUN uv sync --no-cache
Comment thread
cursor[bot] marked this conversation as resolved.
EXPOSE 5000
ENTRYPOINT ["python"]
HEALTHCHECK --interval=1s --timeout=10s --start-period=5s --retries=3 CMD ["python", "/app/src/mock_vws/_flask_server/healthcheck.py"]
Expand Down
Loading