5 Star 46 Fork 12

AIDotNet/OpenDeepWiki

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build-image.sh 1.19 KB
一键复制 编辑 原始数据 按行查看 历史
token 提交于 2025-09-19 16:24 +08:00 . feat: 添加mind-elixir依赖并优化构建流程
#!/bin/bash
echo "==========================================="
echo "Building KoalaWiki Docker Image 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 frontend first
echo "Building frontend..."
pushd web-site > /dev/null
npm install
npm run build
popd > /dev/null
# Build and push backend images for multiple platforms at once (includes frontend static files)
echo "Building and pushing backend image with frontend 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 image!"
exit 1
fi
# Clean up the builder
docker buildx rm multiplatform-builder
echo "==========================================="
echo "Image built and pushed successfully!"
echo "==========================================="
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/AIDotNet/OpenDeepWiki.git
git@gitee.com:AIDotNet/OpenDeepWiki.git
AIDotNet
OpenDeepWiki
OpenDeepWiki
main

搜索帮助