Clone04 commited on
Commit
6252ca9
·
verified ·
1 Parent(s): b20fd43

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -8
Dockerfile CHANGED
@@ -1,12 +1,17 @@
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;"]
 
 
 
 
 
 
 
1
+ # Use the official NGINX image
2
+ FROM nginx:latest
3
 
4
+ # Remove the default NGINX config
5
+ RUN rm /etc/nginx/conf.d/default.conf
 
 
 
6
 
7
+ # Copy custom config
8
  COPY nginx.conf /etc/nginx/nginx.conf
9
 
10
+ # Copy static HTML content
11
+ COPY html /usr/share/nginx/html
12
+
13
+ # Expose port 80
14
+ EXPOSE 7860
15
+
16
+ # Start NGINX
17
+ CMD ["nginx", "-g", "daemon off;"]