11 lines
257 B
Docker
11 lines
257 B
Docker
# Use the official Nginx image from the Docker Hub
|
|
FROM nginx:latest
|
|
|
|
# Copy custom configuration file to Nginx configuration directory
|
|
COPY ./nginx/nginx.conf /etc/nginx/nginx.conf
|
|
|
|
# Expose port
|
|
EXPOSE 80
|
|
|
|
# Start Nginx
|
|
CMD ["nginx", "-g", "daemon off;"]
|