Added windows .bat scripts for docker-build and docker-run

This commit is contained in:
2024-11-19 13:49:38 -05:00
parent b4bd116367
commit 12b7743660
3 changed files with 8 additions and 3 deletions

4
bin/docker-build.bat Normal file
View File

@ -0,0 +1,4 @@
@ECHO OFF
docker build -t colossus-php .
docker build -t colossus-grunt -f Dockerfile.grunt .

View File

@ -1,3 +1,4 @@
@ECHO OFF
docker run --rm -d -w "/usr/src/colossus" -v "%cd%:/usr/src/colossus" -p 8080:8080 --name colossus php:8.1 php -S 0.0.0.0:8080 -t public public/index.php
docker run --rm -d -w "/usr/src/colossus" -v "%cd%:/usr/src/colossus" -p 8080:8080 --name colossus-php colossus-php
docker run --rm -d -w "/usr/src/colossus" -v "%cd%:/usr/src/colossus" --name colossus-grunt colossus-grunt npm run grunt watch