FROM python:3.12-slim@sha256:2f17fc044b579bab302c2e8054d3a686e2cb9a83de48e70534b94cd8ebbe06a9 AS policy WORKDIR /build COPY web /build/web COPY infra /build/infra RUN python infra/compile_web.py # Same pinned base as deploy/Dockerfile.web. FROM nginx:alpine@sha256:62ff2089abf5a9ed33bd232895bef5e22f7bb4b200675cec49a5ebc48e3d4ac8 RUN apk upgrade --no-cache ENV WEB_INDEX=index.html COPY --from=policy /build/default.conf.template /etc/nginx/templates/default.conf.template ENV S3_PUBLIC_ENDPOINT=http://localhost:9000 # The HTML from the policy stage, with every asset address versioned. COPY --from=policy /build/web/ /usr/share/nginx/html/