Skip to content

请教一下自己构建nginx-ui镜像的步骤 #973

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
chung1912 opened this issue Apr 18, 2025 · 4 comments
Closed

请教一下自己构建nginx-ui镜像的步骤 #973

chung1912 opened this issue Apr 18, 2025 · 4 comments

Comments

@chung1912
Copy link

chung1912 commented Apr 18, 2025

步骤是不是如下:
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、构建最终镜像

@0xJacky
Copy link
Owner

0xJacky commented Apr 18, 2025

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

@0xJacky 0xJacky closed this as completed Apr 18, 2025
@chung1912
Copy link
Author

但是要用 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容器启动后在里面输入?还是加在构建某个镜像的某个位置?

@freshgeek
Copy link

freshgeek commented Apr 20, 2025

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

@0xJacky
Copy link
Owner

0xJacky commented Apr 21, 2025

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants