This repository has been archived on 2023-08-24. You can view files and clone it, but cannot push or open issues or pull requests.
2023-01-19 00:40:36 +00:00
|
|
|
FROM fedora:latest as compressor
|
2023-01-19 16:53:18 +00:00
|
|
|
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-01-19 00:40:36 +00:00
|
|
|
|
2023-01-25 12:47:47 +00:00
|
|
|
FROM fholzer/nginx-brotli:latest
|
2023-01-19 00:40:36 +00:00
|
|
|
RUN rm /etc/nginx/nginx.conf
|
2023-01-25 12:47:47 +00:00
|
|
|
RUN apk update
|
|
|
|
RUN apk add --upgrade libxml2 libxslt
|
2023-01-19 16:53:18 +00:00
|
|
|
COPY ./conf/nginx.conf /etc/nginx/nginx.conf
|
|
|
|
COPY --from=compressor /data/out/ /site-static/
|