Spaces:
Build error
Build error
Update exdocker
Browse files
exdocker
CHANGED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use a lightweight Nginx base image
|
2 |
+
FROM nginx:alpine
|
3 |
+
|
4 |
+
# Copy the custom index.html file into the Nginx default directory
|
5 |
+
# Nginx serves content from /usr/share/nginx/html by default
|
6 |
+
COPY index.html /usr/share/nginx/html/index.html
|
7 |
+
|
8 |
+
# Expose port 80, which is a privileged port (<1024)
|
9 |
+
# Nginx's master process runs as root to bind to this port,
|
10 |
+
# then worker processes drop privileges.
|
11 |
+
EXPOSE 80
|
12 |
+
|
13 |
+
# The default Nginx CMD will start the server
|
14 |
+
# CMD ["nginx", "-g", "daemon off;"]
|