FROM ghcr.io/hugomods/hugo:0.157.0 AS build WORKDIR /tmp/hugo COPY . . RUN hugo --gc --minify FROM ghcr.io/static-web-server/static-web-server:2 COPY sws.toml /etc/sws.toml COPY --from=build /tmp/hugo/public /public ENV SERVER_CONFIG_FILE=/etc/sws.toml EXPOSE 80/tcp CMD ["--config-file", "/etc/sws.toml"]