phpmentors-jp / docker-images

https://registry.hub.docker.com/u/phpmentors/
MIT License
26 stars 14 forks source link

Project creation with composer when running a container #1

Closed iteman closed 9 years ago

iteman commented 9 years ago

Running a container with a new project creation

docker run --name <name> -v /path/to/php-app:/var/app -e APP_CREATE_PROJECT="symfony/framework-standard-edition" -d phpmentors/php-app:php55

Running a container with a new project creation with the specified version

docker run --name <name> -v /path/to/php-app:/var/app -e APP_CREATE_PROJECT="symfony/framework-standard-edition" -e APP_CREATE_PROJECT_VERSION="2.3.*" -d phpmentors/php-app:php55