mirror of
https://gitea.smigz.com/smiggiddy/odin-codeprojects.git
synced 2025-06-27 20:45:35 -04:00
17 lines
No EOL
459 B
Docker
17 lines
No EOL
459 B
Docker
# Use an official Nginx image as the base image
|
|
FROM nginx:latest
|
|
|
|
# Set the working directory to /app inside the container
|
|
WORKDIR /app
|
|
|
|
# Copy the HTML, CSS, and JavaScript files from the current directory to /app
|
|
COPY . /app
|
|
|
|
# Copy the Nginx configuration file to /etc/nginx/conf.d/
|
|
COPY ./nginx.conf /etc/nginx/conf.d/default.conf
|
|
|
|
# Expose port 80 for HTTP traffic
|
|
EXPOSE 80
|
|
|
|
# Command to run when the container starts
|
|
CMD ["nginx", "-g", "daemon off;"] |