Projekt_IO/scripts/build_image.bat
2024-01-20 18:06:54 +01:00

25 lines
480 B
Batchfile
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@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
)
cd %~dp0
echo Building docker image...
docker-compose -f ../docker/docker-compose.yml build
if %errorlevel% neq 0 (
echo Building docker image failed.
exit /b 1
)
echo The image was built successfully.