FROM debian:12-slim@sha256:ccb33c3ac5b02588fc1d9e4fc09b952e433d0c54d8618d0ee1afadf1f3cf2455 AS build-stage WORKDIR /venv RUN apt-get update && \ DEBIAN_FRONTEND=noninteractive apt-get install \ --no-install-suggests --no-install-recommends --yes \ python3-venv=3.11.2-1+b1 && \ python3 -m venv /venv COPY utils/test-deployment/requirements.txt /requirements.txt RUN /venv/bin/pip install --disable-pip-version-check --requirement /requirements.txt FROM gcr.io/distroless/python3-debian12:nonroot@sha256:95f5fa82f7cc7da0e133a8a895900447337ef0830870ad8387eb4c696be17057 as production-stage ARG SPECKLE_SERVER ARG SPECKLE_VERSION ENV SPECKLE_SERVER=${SPECKLE_SERVER} \ SPECKLE_SERVER=${SPECKLE_VERSION} COPY --from=build-stage /venv /venv COPY utils/test-deployment /app WORKDIR /app ENTRYPOINT [ "/venv/bin/python3", "-u", "./run_tests.py" ]