forked from AIDotNet/OpenDeepWiki
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-image.bat
More file actions
65 lines (58 loc) · 1.92 KB
/
Copy pathbuild-image.bat
File metadata and controls
65 lines (58 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
@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 ===========================================