fredboniface.co.uk/nginx.Dockerfile

12 lines
383 B
Docker
Raw Permalink Normal View History

2023-02-16 20:40:42 +00:00
FROM fedora:latest as compressor
RUN dnf install brotli nodejs npm jq -y
RUN npm i uglifyjs-folder uglifycss html-minifier-terser -g
COPY . /data/in
RUN bash /data/in/conf/deploy.sh
FROM fholzer/nginx-brotli:latest
2023-01-13 13:54:34 +00:00
RUN rm /etc/nginx/nginx.conf
2023-02-16 20:40:42 +00:00
RUN apk update
RUN apk add --upgrade libxml2 libxslt
COPY ./conf/nginx.conf /etc/nginx/nginx.conf
COPY --from=compressor /data/out/ /site/