ARG NGINX_IMAGE=nginx:1.27-alpine FROM ${NGINX_IMAGE} # The official Nginx entrypoint renders templates into /etc/nginx/conf.d. # Baking the template into the image avoids stale or missing host bind mounts # in Git-based Coolify deployments while preserving env substitution for # MEDIA_SIGNING_SECRET. COPY docker/nginx.conf /etc/nginx/templates/default.conf.template