Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +7 -11
Dockerfile
CHANGED
@@ -1,16 +1,12 @@
|
|
1 |
-
|
2 |
-
FROM nginx:1.25-alpine
|
3 |
|
4 |
-
|
5 |
-
|
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 |
-
|
13 |
-
|
14 |
-
|
15 |
-
EXPOSE 7860
|
16 |
-
CMD ["nginx", "-g", "daemon off;"]
|
|
|
1 |
+
FROM debian:bookworm-slim
|
|
|
2 |
|
3 |
+
RUN apt-get update && \
|
4 |
+
apt-get install -y nginx brotli nginx-module-brotli && \
|
5 |
echo "load_module modules/ngx_http_brotli_filter_module.so;" >> /etc/nginx/nginx.conf && \
|
6 |
+
echo "load_module modules/ngx_http_brotli_static_module.so;" >> /etc/nginx/nginx.conf && \
|
7 |
+
apt-get clean
|
8 |
|
|
|
9 |
COPY nginx.conf /etc/nginx/nginx.conf
|
10 |
|
11 |
+
EXPOSE 80
|
12 |
+
CMD ["nginx", "-g", "daemon off;"]
|
|
|
|
|
|