lix02 commited on
Commit
1971349
·
verified ·
1 Parent(s): 08a303a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -9
Dockerfile CHANGED
@@ -1,16 +1,12 @@
1
  FROM uozi/nginx-ui:latest
2
 
3
- # 设置 SUID 位
4
- RUN chmod +s /usr/bin/s6-overlay-suexec
5
-
6
- # 挂载 tmpfs 到 /run
7
- RUN mkdir -p /run && mount -t tmpfs tmpfs /run
8
-
9
- # 确保以 root 用户运行
10
- USER root
11
 
12
  # 暴露端口 7860
13
  EXPOSE 7860
14
 
15
  # 启动 Nginx-UI 并监听 7860 端口
16
- CMD ["nginx-ui", "--port", "7860"]
 
1
  FROM uozi/nginx-ui:latest
2
 
3
+ # 下载并安装 s6-overlay
4
+ ADD https://github.com/just-containers/s6-overlay/releases/download/v3.1.0.1/s6-overlay-amd64.tar.gz /tmp/
5
+ RUN tar -xzf /tmp/s6-overlay-amd64.tar.gz -C / && \
6
+ chmod +x /init
 
 
 
 
7
 
8
  # 暴露端口 7860
9
  EXPOSE 7860
10
 
11
  # 启动 Nginx-UI 并监听 7860 端口
12
+ CMD ["/init", "nginx-ui", "--port", "7860"]