# Use official nginx alpine image FROM nginx:alpine # Create directory for nginx config RUN mkdir -p /etc/nginx/conf.d # Copy static files COPY index.html styles.css /usr/share/nginx/html/ # Copy nginx configuration COPY nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf # Expose port 80 EXPOSE 80 # Run nginx CMD ["nginx", "-g", "daemon off;"]