Spaces:
Running
Running
Create Dockerfile
Browse files- Dockerfile +16 -0
Dockerfile
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use official Nginx image as base
|
2 |
+
FROM nginx:1.25-alpine
|
3 |
+
|
4 |
+
# Install Brotli module (optional)
|
5 |
+
RUN apk add --no-cache nginx-mod-brotli && \
|
6 |
+
echo "load_module modules/ngx_http_brotli_filter_module.so;" >> /etc/nginx/nginx.conf && \
|
7 |
+
echo "load_module modules/ngx_http_brotli_static_module.so;" >> /etc/nginx/nginx.conf
|
8 |
+
|
9 |
+
# Copy custom Nginx config
|
10 |
+
COPY nginx.conf /etc/nginx/nginx.conf
|
11 |
+
|
12 |
+
# Optional: Copy static files or reverse proxy target config
|
13 |
+
# COPY ./html /usr/share/nginx/html
|
14 |
+
|
15 |
+
EXPOSE 7860
|
16 |
+
CMD ["nginx", "-g", "daemon off;"]
|