cap nginx workers for small instances

This commit is contained in:
2026-11-13 01:46:46 +02:00
parent f84b67e2c4
commit db8f4c44dd
+3
View File
@@ -3,4 +3,7 @@ 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