gateway.fjla.uk/old/Dockerfile

12 lines
394 B
Docker
Raw Permalink Normal View History

2023-02-16 19:57:13 +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/deploy/deploy.sh
2023-02-16 19:57:13 +00:00
FROM fholzer/nginx-brotli:latest
RUN rm /etc/nginx/nginx.conf
RUN apk update
RUN apk add --upgrade libxml2 libxslt
COPY ./deploy/nginx.conf /etc/nginx/nginx.conf
COPY --from=compressor /data/out/ /site-static/