|
发表于 2023-6-29 21:16:46
|
显示全部楼层
本楼为最佳答案
那就除了自己编译镜像没有别的办法了,自己编译镜像也不难,我自己尝试了一遍编译的过程,我把整个编译过程的命令发给你吧
如果遇到问题再问我,命令的详细解释就不写了,想知道命令什么意思可以问chatgpt
- git clone https://gitee.com/Hoo1941/UOJ-System.git
- cd UOJ-System
- sed -i 's|https://github.com/UniversalOJ/UOJ-System.git|https://gitee.com/Hoo1941/UOJ-System.git|g' install/bundle/Dockerfile install/judger/Dockerfile install/web/Dockerfile
- sed -i '/apt/d' install/db/Dockerfile
- sed -i 's|https://raw.githubusercontent.com/UniversalOJ/UOJ-System/master|https://gitee.com/Hoo1941/UOJ-System/raw/master/|' install/db/Dockerfile
- docker build -t universaloj/uoj-system:db install/db/
- sed -i '5iRUN sed -i "s/archive.ubuntu.com/mirrors.aliyun.com/g" /etc/apt/sources.list' install/web/Dockerfile install/judger/Dockerfile
- docker build -t universaloj/uoj-system:web install/web/
- docker build -t universaloj/uoj-system:judger install/judger/
- docker-compose -f install/compose/docker-compose.yml up -d
复制代码
|
|