Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 565 Bytes

README.md

File metadata and controls

26 lines (20 loc) · 565 Bytes

Docker Symfony

Dockerfile with Symfony binary

How to use this image

docker run --rm -it \
    --name my_symfony_app \
    --user ${UID}:${GID} \
    -v "$(pwd)":/usr/src/myapp \
    -w /usr/src/myapp \
    babeuloula/symfony:latest \
    symfony new my_project

Or you can add an alias on your bashrc / zshrc:

alias symfony='docker run --rm -it --name symfony_docker --user ${UID}:${GID} -v "$(pwd)":/usr/src/myapp -w /usr/src/myapp babeuloula/symfony:latest symfony'
symfony new my_project
symfony --webapp my_project