forked from aws-samples/aws-codepipeline-s3-codedeploy-linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (19 loc) · 637 Bytes
/
Dockerfile
File metadata and controls
27 lines (19 loc) · 637 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# # Use the official Nginx image as a base
# FROM nginx:1.25
# # Create a non-root user and switch to it
# RUN addgroup --system nginx && adduser --system --ingroup nginx nginx
# USER nginx
# # Copy your custom configuration or HTML files if needed
# COPY --chown=nginx:nginx index.html /usr/share/nginx/html/
# # Expose port 80
# EXPOSE 80
# # Start Nginx
# CMD ["nginx", "-g", "daemon off;"]
# Use the official Nginx image as a base
FROM nginx:1.25
# Copy the index.html file to the default Nginx web directory
COPY index.html /usr/share/nginx/html/
# Expose port 80
EXPOSE 80
# Start Nginx
CMD ["nginx", "-g", "daemon off;"]