Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -97,8 +97,8 @@ RUN cd /tmp && \
|
|
| 97 |
|
| 98 |
# 创建nginx配置文件(修改端口为7860)
|
| 99 |
# 屏蔽警告: nginx: [warn] the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:1
|
| 100 |
-
|
| 101 |
-
|
| 102 |
echo 'error_log /var/log/nginx/error.log;' >> /etc/nginx/nginx.conf && \
|
| 103 |
echo 'pid /var/run/nginx.pid;' >> /etc/nginx/nginx.conf && \
|
| 104 |
echo '' >> /etc/nginx/nginx.conf && \
|
|
|
|
| 97 |
|
| 98 |
# 创建nginx配置文件(修改端口为7860)
|
| 99 |
# 屏蔽警告: nginx: [warn] the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:1
|
| 100 |
+
RUN echo 'user nginx;' > /etc/nginx/nginx.conf && \
|
| 101 |
+
echo 'worker_processes auto;' >> /etc/nginx/nginx.conf && \
|
| 102 |
echo 'error_log /var/log/nginx/error.log;' >> /etc/nginx/nginx.conf && \
|
| 103 |
echo 'pid /var/run/nginx.pid;' >> /etc/nginx/nginx.conf && \
|
| 104 |
echo '' >> /etc/nginx/nginx.conf && \
|