# Use an official Nginx image as the base image FROM nginx:alpine # Set the working directory in the container WORKDIR /usr/share/nginx/html # Remove default Nginx welcome page RUN rm -rf ./* # Copy all the static assets from your project to the Nginx public directory # This includes index.html, app.js, style.css, and any images or data files COPY . . # Expose port 80 (the default Nginx port) EXPOSE 80 # Command to run Nginx when the container starts CMD ["nginx", "-g", "daemon off;"]