logo
0
0
Login

此仓库是其他仓库及基本库,使用 Dockerfile 自定义环境,并构建发布到制品库,方便其他仓库使用。

构建并发布

由于在 .cnb.yml 中定义自动构建较慢,因此需要手动构建并发布。 构建命令

docker build -t docker.cnb.cool/the_ring/develope_base:latest -f .ide/Dockerfile .

发布命令

docker push docker.cnb.cool/the_ring/develope_base:latest

定义自动构建并发布脚本

./buildAndPush.sh

使用方法

在需要使用的仓库的 .cnb.yml 中添加如下内容

build: - name: 构建基础镜像 image: docker.cnb.cool/the_ring/develope_base:latest runner: tags: cnb:arch:amd64:gpu services: - vscode - docker stages: - name: start ollama script: nohup ollama serve >/dev/null 2>&1 &

About

其他仓库的基础镜像库 1. 定义 Dockerfile 自定义开发环境

Language
Dockerfile84.6%
Shell15.4%