# Use lightweight Nginx + Git FROM nginx:alpine # Install git and bash RUN apk add --no-cache git bash # Copy nginx config COPY nginx.conf /etc/nginx/nginx.conf # Copy update script COPY update.sh /update.sh RUN chmod +x /update.sh # Start update loop + nginx CMD ["/bin/bash", "-c", "/update.sh & nginx -g 'daemon off;'"]