diff --git a/winlaunch.ps1 b/winlaunch.ps1 index 8bc4858..97f8d93 100644 --- a/winlaunch.ps1 +++ b/winlaunch.ps1 @@ -1,3 +1,7 @@ +# Setup script that imports local .env variable file and runs the docker +# container with the appropriate volume bind mount. + +# Load environment variables from .env file Get-Content .env | foreach { $name, $value = $_.split('=') if ([string]::IsNullOrWhiteSpace($name) -or $name.Contains('#')) { @@ -6,6 +10,7 @@ Get-Content .env | foreach { Set-Content env:\$name $value } +# Docker environment launch docker run --rm -it ` -v ${PWD}:/app/code ` -v ${env:DATAPATH}:/app/workdir `