mirror of
https://gitea.smigz.com/smiggiddy/odin-codeprojects.git
synced 2025-06-27 11:20:40 -04:00
14 lines
No EOL
320 B
Docker
14 lines
No EOL
320 B
Docker
# Use an official Nginx image as the base image
|
|
FROM nginx:latest
|
|
|
|
# Remove default Nginx files
|
|
RUN rm -rf /usr/share/nginx/html/*
|
|
|
|
# Copy the project files to the Nginx default directory
|
|
COPY . /usr/share/nginx/html
|
|
|
|
# Expose port 80
|
|
EXPOSE 80
|
|
|
|
# Start Nginx when the container starts
|
|
CMD ["nginx", "-g", "daemon off;"] |