This repository has been archived on 2023-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
web/Dockerfile

13 lines
454 B
Docker
Raw Permalink Normal View History

2023-02-09 20:29:07 +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
2023-06-09 12:21:53 +01:00
## Maybe use: georgjung/nginx-brotli:mainline-alpine
## Instead?
2023-02-09 20:29:07 +00:00
FROM fholzer/nginx-brotli:latest
RUN rm /etc/nginx/nginx.conf
2023-03-16 20:45:29 +00:00
RUN apk update && apk add --upgrade libxml2 libxslt
2023-02-09 20:29:07 +00:00
COPY ./conf/nginx.conf /etc/nginx/nginx.conf
COPY --from=compressor /data/out/ /site-static/