Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +13 -8
Dockerfile
CHANGED
@@ -1,12 +1,17 @@
|
|
1 |
-
|
|
|
2 |
|
3 |
-
|
4 |
-
|
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 |
-
|
12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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;"]
|