Clone04 commited on
Commit
b20fd43
·
verified ·
1 Parent(s): 2d0dc1d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -11
Dockerfile CHANGED
@@ -1,16 +1,12 @@
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;"]
 
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;"]