浏览代码

php-ngx 3x workers (#5496)

Joan Miquel 5 年之前
父节点
当前提交
980db484ca
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      frameworks/PHP/php-ngx/php-ngx.dockerfile

+ 1 - 1
frameworks/PHP/php-ngx/php-ngx.dockerfile

@@ -26,6 +26,6 @@ RUN wget -q http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz && \
             --add-module=/ngx_php7 > /dev/null && \
     make > /dev/null && make install > /dev/null
 
-CMD export WORKERS=$(( 2 * $(nproc) )) && \
+CMD export WORKERS=$(( 3 * $(nproc) )) && \
     sed -i "s/worker_processes  auto/worker_processes $WORKERS/g" /deploy/nginx.conf && \
     /nginx/sbin/nginx -c /deploy/nginx.conf