FROM nginx:1.27-bookworm # render ssh needs ~/.ssh for the running user and an unlocked root RUN mkdir -p /root/.ssh && chmod 0700 /root/.ssh && usermod --unlock root # auto workers counts host cpus, not the instance quota RUN sed -i 's/worker_processes auto;/worker_processes 2;/' /etc/nginx/nginx.conf COPY nginx.render.conf /etc/nginx/conf.d/default.conf