diff --git a/Dockerfile b/Dockerfile index b21ef84..552e26b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,4 +2,4 @@ FROM alpine:latest RUN sed -i 's@dl-cdn.alpinelinux.org@mirrors.tuna.tsinghua.edu.cn@g' /etc/apk/repositories \ && apk add --no-cache nginx -CMD ["nginx", "-g", "daemon off;"] +CMD ["nginx"] diff --git a/nginx.conf b/nginx.conf index 83cfaf4..1d5d9ae 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,6 +1,7 @@ #user nobody; -worker_processes 4; +worker_processes auto; +daemon off; #error_log logs/error.log; #error_log logs/error.log notice;