mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-04-25 08:45:58 +03:00
[GH-ISSUE #973] 请教一下自己构建nginx-ui镜像的步骤 #519
Labels
No labels
Q/A
bug
casdoor
dependencies
docker
documentation
duplicate
enhancement
help wanted
invalid
lego
platform:openwrt
platform:windows
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-ui#519
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:latest5、构建最终镜像
@0xJacky commented on GitHub (Apr 18, 2025):
但是要用
bash -c "$(curl -L https://raw.githubusercontent.com/0xJacky/nginx-ui/main/install.sh)" @ install进行安装,不然你要手动构建项目
@chung1912 commented on GitHub (Apr 18, 2025):
我不太理解,构建好镜像不是直接使用么?
bash -c "$(curl -L https://raw.githubusercontent.com/0xJacky/nginx-ui/main/install.sh)" @ install这条安装命令在docker容器启动后在里面输入?还是加在构建某个镜像的某个位置?@freshgeek commented on GitHub (Apr 20, 2025):
感觉是在说直接安装的方法
@0xJacky commented on GitHub (Apr 21, 2025):
我觉得你可以先研究一下怎么自己构建 nginx 的镜像,我这个 PR 合并之后 #977 ,直接映射 docker.sock 再改个配置就可以管外部容器里的 nginx 了