Skip to content

hloeffler/symfony-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

symfony-docker

i want to use symfony, but dont want to install php

  • symfony
  • php7.1

Dockerhub

docker pull hloeffler/symfony

Example


docker build -t hloeffler/symfony .
docker run --rm -v $(pwd):/home/www/symfony -it hloeffler/symfony  symfony new test
docker run --rm -v $(pwd):/home/www/symfony -p 127.0.0.1:8000:8000 -it hloeffler/symfony  php test/bin/console server:run 0.0.0.0:8000

# if you run docker as user and want non-root permissions:
docker run --rm -v $(pwd):/home/www/symfony -v /etc/group:/etc/group:ro -v /etc/passwd:/etc/passwd:ro -u $( id -u $USER ):$( id -g $USER )  -it hloeffler/symfony  symfony new test

About

Dockerfile to use symfony without installing php

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published