Added windows .bat scripts for docker-build and docker-run
This commit is contained in:
parent
b4bd116367
commit
12b7743660
@ -1,5 +1,5 @@
|
||||
# PHP composer to get dependencies
|
||||
FROM composer:2.5 as COMPOSER
|
||||
FROM composer:2.5 AS composer
|
||||
|
||||
WORKDIR /usr/src/colossus/
|
||||
|
||||
@ -14,7 +14,7 @@ FROM php:8.2-cli
|
||||
|
||||
WORKDIR /usr/src/colossus/
|
||||
|
||||
COPY --from=COMPOSER /usr/src/colossus/vendor/ /usr/src/colossus/vendor/
|
||||
COPY --from=composer /usr/src/colossus/vendor/ /usr/src/colossus/vendor/
|
||||
COPY . /usr/src/colossus/
|
||||
|
||||
VOLUME /usr/src/colossus/vendor/
|
||||
|
4
bin/docker-build.bat
Normal file
4
bin/docker-build.bat
Normal file
@ -0,0 +1,4 @@
|
||||
@ECHO OFF
|
||||
|
||||
docker build -t colossus-php .
|
||||
docker build -t colossus-grunt -f Dockerfile.grunt .
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user