[GH-ISSUE #973] 请教一下自己构建nginx-ui镜像的步骤 #519

Closed
opened 2026-02-26 12:08:35 +03:00 by kerem · 4 comments
Owner

Originally created by @chung1912 on GitHub (Apr 18, 2025).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/973

步骤是不是如下:
1、获取https://github.com/0xJacky/uozi-docker.git 源码,
2、把https://github.com/0xJacky/uozi-docker/blob/main/nginx-ui-base/Dockerfile 里面Dockerfile文件的FROM nginx:latest替换成自己加了插件的nginx镜像,比如 FROM nginx-added-models:latest,构建基础镜像(比如叫nginx-ui-base-added-models:latest
3、获取源码 https://github.com/0xJacky/nginx-ui.git
4、修改 Dockerfile文件中的 FROM uozi/nginx-ui-base:latestFROM nginx-ui-base-added-models:latest
5、构建最终镜像

Originally created by @chung1912 on GitHub (Apr 18, 2025). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/973 步骤是不是如下: 1、获取https://github.com/0xJacky/uozi-docker.git 源码, 2、把https://github.com/0xJacky/uozi-docker/blob/main/nginx-ui-base/Dockerfile 里面Dockerfile文件的`FROM nginx:latest`替换成自己加了插件的nginx镜像,比如 `FROM nginx-added-models:latest`,构建基础镜像(比如叫`nginx-ui-base-added-models:latest`) 3、获取源码 https://github.com/0xJacky/nginx-ui.git 4、修改 Dockerfile文件中的 `FROM uozi/nginx-ui-base:latest` 为 `FROM nginx-ui-base-added-models:latest` 5、构建最终镜像
kerem closed this issue 2026-02-26 12:08:35 +03:00
Author
Owner

@0xJacky commented on GitHub (Apr 18, 2025):

但是要用
bash -c "$(curl -L https://raw.githubusercontent.com/0xJacky/nginx-ui/main/install.sh)" @ install
进行安装,不然你要手动构建项目

<!-- gh-comment-id:2814919432 --> @0xJacky commented on GitHub (Apr 18, 2025): 但是要用 ```bash -c "$(curl -L https://raw.githubusercontent.com/0xJacky/nginx-ui/main/install.sh)" @ install``` 进行安装,不然你要手动构建项目
Author
Owner

@chung1912 commented on GitHub (Apr 18, 2025):

但是要用 bash -c "$(curl -L https://raw.githubusercontent.com/0xJacky/nginx-ui/main/install.sh)" @ install 进行安装,不然你要手动构建项目

我不太理解,构建好镜像不是直接使用么?bash -c "$(curl -L https://raw.githubusercontent.com/0xJacky/nginx-ui/main/install.sh)" @ install 这条安装命令在docker容器启动后在里面输入?还是加在构建某个镜像的某个位置?

<!-- gh-comment-id:2814937031 --> @chung1912 commented on GitHub (Apr 18, 2025): > 但是要用 `bash -c "$(curl -L https://raw.githubusercontent.com/0xJacky/nginx-ui/main/install.sh)" @ install` 进行安装,不然你要手动构建项目 我不太理解,构建好镜像不是直接使用么?`bash -c "$(curl -L https://raw.githubusercontent.com/0xJacky/nginx-ui/main/install.sh)" @ install` 这条安装命令在docker容器启动后在里面输入?还是加在构建某个镜像的某个位置?
Author
Owner

@freshgeek commented on GitHub (Apr 20, 2025):

感觉是在说直接安装的方法

<!-- gh-comment-id:2817091956 --> @freshgeek commented on GitHub (Apr 20, 2025): 感觉是在说直接安装的方法
Author
Owner

@0xJacky commented on GitHub (Apr 21, 2025):

感觉是在说直接安装的方法

我觉得你可以先研究一下怎么自己构建 nginx 的镜像,我这个 PR 合并之后 #977 ,直接映射 docker.sock 再改个配置就可以管外部容器里的 nginx 了

<!-- gh-comment-id:2817431378 --> @0xJacky commented on GitHub (Apr 21, 2025): > 感觉是在说直接安装的方法 我觉得你可以先研究一下怎么自己构建 nginx 的镜像,我这个 PR 合并之后 #977 ,直接映射 docker.sock 再改个配置就可以管外部容器里的 nginx 了
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-ui#519
No description provided.