Skip to content

Commit 7e4d2ba

Browse files
authored
Merge pull request #30 from andrewshan/main
feat:指定root用户运行nginx
2 parents ba6d250 + 1795653 commit 7e4d2ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ RUN set -ex \
3434
&& cp nginx/nginx.conf "$ngx_file_name"/conf/ \
3535
&& chmod +x "$ngx_file_name"/configure \
3636
&& cd "$ngx_file_name" \
37-
&& ./configure --prefix=/etc/nginx --add-module=../../source/nginx_polaris_limit_module --add-module=../polaris_client --with-stream --with-cpp=g++ \
37+
&& ./configure --prefix=/etc/nginx --user=root --add-module=../../source/nginx_polaris_limit_module --add-module=../polaris_client --with-stream --with-cpp=g++ \
3838
&& make \
3939
&& make install \
4040
&& ln -sf /etc/nginx/sbin/nginx /usr/local/bin/nginx \

0 commit comments

Comments
 (0)