3 Star 19 Fork 2

AIDotNet/OpenDeepWiki

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build-image.sh 1.58 KB
一键复制 编辑 原始数据 按行查看 历史
token 提交于 2025-05-10 17:39 +08:00 . Update build-image.sh
#!/bin/bash
echo "==========================================="
echo "Building KoalaWiki Docker Images with BuildKit Multi-platform"
echo "==========================================="
# Enable Docker Buildx with a new builder that supports multi-platform builds
docker buildx create --name multiplatform-builder --use
# Build and push backend images for multiple platforms at once
echo "Building and pushing backend images for multiple platforms..."
docker buildx build \
--platform linux/amd64,linux/arm64 \
-t crpi-j9ha7sxwhatgtvj4.cn-shenzhen.personal.cr.aliyuncs.com/koala-ai/koala-wiki:latest \
-t crpi-j9ha7sxwhatgtvj4.cn-shenzhen.personal.cr.aliyuncs.com/koala-ai/koala-wiki:amd64 \
-f src/KoalaWiki/Dockerfile \
--push .
if [ $? -ne 0 ]; then
echo "Error building and pushing backend images!"
exit 1
fi
# Build and push frontend images for multiple platforms at once
echo "Building and pushing frontend images for multiple platforms..."
pushd web > /dev/null
docker buildx build \
--platform linux/amd64,linux/arm64 \
-t crpi-j9ha7sxwhatgtvj4.cn-shenzhen.personal.cr.aliyuncs.com/koala-ai/koala-wiki-web:latest \
-t crpi-j9ha7sxwhatgtvj4.cn-shenzhen.personal.cr.aliyuncs.com/koala-ai/koala-wiki-web:amd64 \
-f Dockerfile \
--push .
if [ $? -ne 0 ]; then
echo "Error building and pushing frontend images!"
exit 1
fi
popd > /dev/null
# Clean up the builder
docker buildx rm multiplatform-builder
echo "==========================================="
echo "All images built and pushed successfully!"
echo "==========================================="
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/AIDotNet/OpenDeepWiki.git
git@gitee.com:AIDotNet/OpenDeepWiki.git
AIDotNet
OpenDeepWiki
OpenDeepWiki
main

搜索帮助