devin15 commited on
Commit
ba8387b
·
verified ·
1 Parent(s): 4536eb0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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
- # RUN echo 'user nginx;' > /etc/nginx/nginx.conf && \
101
- RUN 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 && \
 
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 && \