Files
UnrealEngine/Engine/Source/Programs/WebTestsServer/dockerbuildandrun.bat
2025-05-18 13:04:45 +08:00

15 lines
313 B
Batchfile

@echo off
:: Build image
docker build . -t webtests
set CONTAINER="webtestscontainer"
:: Check if container exist and delete
docker ps -a | findstr /c:"%CONTAINER%" >nul 2>&1
if %errorlevel% equ 0 (
docker rm -f %CONTAINER%
)
:: Run container with image
docker run --name %CONTAINER% -d -p 8000:8000 webtests