odin-codespace/library/devops/Dockerfile
2025-05-02 17:07:42 +00:00

14 lines
No EOL
332 B
Docker

# Use an official Nginx image as the base image
FROM nginx:latest
# Set the working directory in the container
WORKDIR /usr/share/nginx/html
# Copy the project files into the container's directory
COPY . .
# Expose port 80 to the outside world
EXPOSE 80
# Start Nginx when the container starts
CMD ["nginx", "-g", "daemon off;"]