# Use the lightweight Nginx image FROM nginx:alpine # Copy all files from your Git repo into the web server directory COPY ./html/ /usr/share/nginx/html/ RUN echo 'server { \ listen 80 default_server; \ server_name _; \ root /usr/share/nginx/html; \ index index.html; \ location / { \ try_files $uri $uri/ =404; \ } \ }' > /etc/nginx/conf.d/default.conf # Expose port 80 EXPOSE 80