Projekt_IO/scripts/build_image.bat

25 lines
468 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 ../docker
echo Building docker image...
docker compose build cat-detection
if %errorlevel% neq 0 (
echo Building cdocker imagew failed.
exit /b 1
)
echo The image was built successfully.