fix: nginx-tengine 启动命令改用绝对路径
容器运行时未继承镜像内 ENV PATH,exec "nginx" 报 executable file not found
This commit is contained in:
@@ -49,4 +49,4 @@ RUN yum install \
|
||||
# tengine 默认以 nobody 用户运行 worker 进程,root 启动后自动降权,可直接监听 80/443
|
||||
EXPOSE 80 443
|
||||
STOPSIGNAL SIGQUIT
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
CMD ["/usr/local/nginx/sbin/nginx", "-g", "daemon off;"]
|
||||
|
||||
Reference in New Issue
Block a user