Spaces:
Running
Running
FROM debian:bookworm-slim | |
RUN apt-get update && \ | |
apt-get install -y nginx brotli nginx-module-brotli && \ | |
echo "load_module modules/ngx_http_brotli_filter_module.so;" >> /etc/nginx/nginx.conf && \ | |
echo "load_module modules/ngx_http_brotli_static_module.so;" >> /etc/nginx/nginx.conf && \ | |
apt-get clean | |
COPY nginx.conf /etc/nginx/nginx.conf | |
EXPOSE 80 | |
CMD ["nginx", "-g", "daemon off;"] | |