build-images.bat
516 Bytes
@echo off
chcp 65001 >nul
REM HaHRCS Docker 镜像打包脚本
REM @author zzy
echo 正在构建后端镜像...
docker-compose build api
if %ERRORLEVEL% NEQ 0 (
echo 镜像构建失败
exit /b 1
)
echo 正在导出所有镜像...
docker save -o hahrcs-images.tar hahrcs/api:latest masstransit/rabbitmq:4.1.3 redis:7.2-alpine postgis/postgis:15-3.4 emqx/emqx:5.5 nginx:1.25-alpine
if %ERRORLEVEL% EQU 0 (
echo 镜像导出完成: hahrcs-images.tar
) else (
echo 镜像导出失败
exit /b 1
)