优化nginx配置
This commit is contained in:
parent
d1d28d22a8
commit
7a89b28f3a
@ -2,4 +2,4 @@ FROM alpine:latest
|
|||||||
|
|
||||||
RUN sed -i 's@dl-cdn.alpinelinux.org@mirrors.tuna.tsinghua.edu.cn@g' /etc/apk/repositories \
|
RUN sed -i 's@dl-cdn.alpinelinux.org@mirrors.tuna.tsinghua.edu.cn@g' /etc/apk/repositories \
|
||||||
&& apk add --no-cache nginx
|
&& apk add --no-cache nginx
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
CMD ["nginx"]
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
|
|
||||||
#user nobody;
|
#user nobody;
|
||||||
worker_processes 4;
|
worker_processes auto;
|
||||||
|
daemon off;
|
||||||
|
|
||||||
#error_log logs/error.log;
|
#error_log logs/error.log;
|
||||||
#error_log logs/error.log notice;
|
#error_log logs/error.log notice;
|
||||||
|
Loading…
Reference in New Issue
Block a user