FROM nginx:alpine # Copy static files COPY . /usr/share/nginx/html # Copy nginx configuration COPY nginx.conf /etc/nginx/conf.d/default.conf # Remove Docker-related files from the served directory RUN rm -f /usr/share/nginx/html/Dockerfile \ /usr/share/nginx/html/docker-compose.yml \ /usr/share/nginx/html/.dockerignore \ /usr/share/nginx/html/docker-deployment.json \ /usr/share/nginx/html/*.ps1 \ /usr/share/nginx/html/README.DOCKER.md 2>/dev/null || true EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]