Create Dockerfile
Browse files- Dockerfile +11 -0
Dockerfile
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use an official Nginx runtime as the base image
|
2 |
+
FROM nginx:latest
|
3 |
+
|
4 |
+
# Copy the HTML page to the Nginx document root directory
|
5 |
+
COPY index.html /usr/share/nginx/html
|
6 |
+
|
7 |
+
# Expose the default Nginx port
|
8 |
+
EXPOSE 80
|
9 |
+
|
10 |
+
# Start the Nginx server when the container launches
|
11 |
+
CMD ["nginx", "-g", "daemon off;"]
|