ripe87/Dockerfile

10 lines
336 B
Docker
Raw Normal View History

2023-11-19 14:35:49 +00:00
FROM betterweb/hugo AS build
WORKDIR /build
COPY ./ ./
RUN hugo --gc --minify
RUN find public -type f -regex '.*\.\(css\|html\|js\|txt\|xml\)$' -exec gzip -f -k {} \;
RUN find public -type f -regex '.*\.\(css\|html\|js\|txt\|xml\)$' -exec brotli -f -k {} \;
FROM jitesoft/lighttpd AS run
COPY --from=build /build/public /var/www/html/