FROM scratch
COPY --chmod=0555 .cache/server/static-web-server /static-web-server
COPY sws.toml /etc/static-web-server.toml
COPY --chown=65532:65532 .cache/image-site/demos/doom/ /public/demos/doom/
USER 65532:65532
ENV SERVER_HOST=0.0.0.0 SERVER_PORT=8080
EXPOSE 8080
ENTRYPOINT ["/static-web-server"]
CMD ["--config-file", "/etc/static-web-server.toml"]
