FROM debian:12-slim@sha256:d02c76d82364cedca16ba3ed6f9102406fa9fa8833076a609cabf14270f43dfc 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:5c7661ddc1f43e50ee97404b12146d34ac34afc9ab7e713c3bac189efb074e10 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" ]