11 lines
		
	
	
		
			389 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			389 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
| 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
 | |
| RUN rm /etc/nginx/nginx.conf
 | |
| RUN apk update && apk add --upgrade libxml2 libxslt
 | |
| COPY ./conf/nginx.conf /etc/nginx/nginx.conf
 | |
| COPY --from=compressor /data/out/ /site-static/ |