fix: nginx-tengine 启动命令改用绝对路径

容器运行时未继承镜像内 ENV PATH,exec "nginx" 报 executable file not found
This commit is contained in:
2025-09-06 21:04:35 +08:00
parent 642bd7e9c5
commit 902eb3c23f
+1 -1
View File
@@ -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;"]