# syntax=docker/dockerfile:1 # scripts/build-site.sh prepares .build/site before this image is built. The # runtime contains neither Git nor a shell-based synchronizer: published files # are immutable and can only change by building a new, traceable image. # Pin both the tested SWS release and its multi-architecture manifest digest so # rebuilding an old pack revision cannot silently pick up a different runtime. FROM ghcr.io/static-web-server/static-web-server:2.44.0@sha256:2c1a7c3e0feaea5859307403b74e1c575f3ec1499094fc077344173d11abaae2 ARG VCS_REF=unknown LABEL org.opencontainers.image.source="https://tea.ahmza.com/ahmza/mcpacks" \ org.opencontainers.image.revision="$VCS_REF" \ org.opencontainers.image.description="Static Packwiz repositories for AGS Minecraft servers" COPY sws.toml /etc/sws.toml COPY .build/site /public ENV SERVER_CONFIG_FILE=/etc/sws.toml EXPOSE 80/tcp CMD ["--config-file", "/etc/sws.toml"]