mirror of
https://gitea.smigz.com/smiggiddy/odin-codeprojects.git
synced 2025-06-27 11:20:40 -04:00
20 lines
No EOL
477 B
Docker
20 lines
No EOL
477 B
Docker
# Use an official Nginx image as the base image
|
|
FROM nginx:latest
|
|
|
|
# Remove default Nginx configuration
|
|
RUN rm /etc/nginx/conf.d/default.conf
|
|
|
|
# Copy custom Nginx configuration
|
|
COPY nginx.conf /etc/nginx/conf.d
|
|
|
|
# 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;"] |