代码拉取完成,页面将自动刷新
@echo off
echo ===========================================
echo Building KoalaWiki Docker Images
echo ===========================================
REM Enable Docker Buildx
echo Enabling Docker Buildx...
docker buildx create --use
REM Build backend image for amd64 platform
echo Building backend image for amd64 platform...
docker buildx build ^
--platform linux/amd64 ^
-t crpi-j9ha7sxwhatgtvj4.cn-shenzhen.personal.cr.aliyuncs.com/koala-ai/koala-wiki ^
-f src/KoalaWiki/Dockerfile ^
--push .
if %ERRORLEVEL% NEQ 0 (
echo Error building backend amd64 image!
exit /b %ERRORLEVEL%
)
REM Build backend image specifically for arm64 platform using Dockerfile.arm
echo Building backend image for arm64 platform using Dockerfile.arm...
docker buildx build ^
--platform linux/arm64 ^
-t crpi-j9ha7sxwhatgtvj4.cn-shenzhen.personal.cr.aliyuncs.com/koala-ai/koala-wiki:arm64 ^
-f src/KoalaWiki/Dockerfile.arm ^
--push .
if %ERRORLEVEL% NEQ 0 (
echo Error building backend arm64 image!
exit /b %ERRORLEVEL%
)
REM Build frontend image for amd64 platform
echo Building frontend image for amd64 platform...
pushd web
docker buildx build ^
--platform linux/amd64 ^
-t crpi-j9ha7sxwhatgtvj4.cn-shenzhen.personal.cr.aliyuncs.com/koala-ai/koala-wiki-web ^
-f Dockerfile ^
--push .
if %ERRORLEVEL% NEQ 0 (
echo Error building frontend amd64 image!
exit /b %ERRORLEVEL%
)
popd
REM Build frontend image for arm64 platform
echo Building frontend image for arm64 platform...
pushd web
docker buildx build ^
--platform linux/arm64 ^
-t crpi-j9ha7sxwhatgtvj4.cn-shenzhen.personal.cr.aliyuncs.com/koala-ai/koala-wiki-web:arm64 ^
-f Dockerfile.arm ^
--push .
if %ERRORLEVEL% NEQ 0 (
echo Error building frontend arm64 image!
exit /b %ERRORLEVEL%
)
popd
echo ===========================================
echo Images built and pushed successfully!
echo ===========================================
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。