Spaces:
Sleeping
Sleeping
# Use official Nginx image as base | |
FROM nginx:1.25-alpine | |
# Install Brotli module (optional) | |
RUN apk add --no-cache nginx-mod-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 | |
# Copy custom Nginx config | |
COPY nginx.conf /etc/nginx/nginx.conf | |
# Optional: Copy static files or reverse proxy target config | |
# COPY ./html /usr/share/nginx/html | |
EXPOSE 7860 | |
CMD ["nginx", "-g", "daemon off;"] |