Projekt_IO/scripts/build_image.bat

25 lines
480 B
Batchfile
Raw Normal View History

@echo off
chcp 65001 >nul
docker -v >nul 2>&1
if %errorlevel% neq 0 (
echo Docker is not installed.
exit /b 1
)
docker info >nul 2>&1
if %errorlevel% neq 0 (
echo Docker engine is not running.
exit /b 1
)
2024-01-20 18:06:54 +01:00
cd %~dp0
echo Building docker image...
2024-01-20 18:06:54 +01:00
docker-compose -f ../docker/docker-compose.yml build
if %errorlevel% neq 0 (
2024-01-20 18:06:54 +01:00
echo Building docker image failed.
exit /b 1
)
echo The image was built successfully.