Sanitized mirror from private repository - 2026-04-18 11:19:59 UTC
This commit is contained in:
19
archive/nginx-templates/Dockerfile
Normal file
19
archive/nginx-templates/Dockerfile
Normal file
@@ -0,0 +1,19 @@
|
||||
FROM nginx:latest
|
||||
|
||||
# Copy custom configuration file
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
|
||||
# Copy default site configuration
|
||||
COPY default.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
# Create directory for website files
|
||||
RUN mkdir -p /usr/share/nginx/html
|
||||
|
||||
# Copy website files
|
||||
COPY index.html /usr/share/nginx/html/
|
||||
|
||||
# Expose port 80
|
||||
EXPOSE 80
|
||||
|
||||
# Start Nginx
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
Reference in New Issue
Block a user