nginx user www-data

This commit is contained in:
2021-05-23 14:08:05 +00:00
parent d744dd2c5d
commit 922d2f4b8a
3 changed files with 7 additions and 3 deletions

View File

@@ -84,8 +84,9 @@ RUN luarocks install --tree lua_modules luaposix && \
luarocks install --tree lua_modules etlua && \
luarocks install --tree lua_modules luafilesystem && \
luarocks install lua-resty-auto-ssl
#RUN useradd -ms /bin/bash www-data
#USER www-data
RUN mkdir /etc/resty-auto-ssl #\
#&& chown www-data /etc/resty-auto-ssl
&& chown -R www-data /etc/resty-auto-ssl
CMD ["/usr/local/openresty/bin/openresty", "-g" ,"daemon off;"];