Update Dockerfile
Browse files- Dockerfile +5 -9
Dockerfile
CHANGED
@@ -1,16 +1,12 @@
|
|
1 |
FROM uozi/nginx-ui:latest
|
2 |
|
3 |
-
#
|
4 |
-
|
5 |
-
|
6 |
-
|
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"]
|