Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 669 Bytes

README.md

File metadata and controls

29 lines (23 loc) · 669 Bytes

Build Status

symfony-cli

A lightweight image with symfony-cli

How to use

Add in your shell rc file the code below :

symfony () {
    tty=
    tty -s && tty=--tty
    docker run $tty -i --rm \
        -v $(pwd):$(pwd) \
        -v /etc/passwd:/etc/passwd:ro \
        -v /etc/group:/etc/group:ro \
        -u $(id -u):$(id -g) \
        -v "$(pwd):$(pwd)" \
        -w "$(pwd)" \
        ke20/symfony-cli "$@"
}

Open a new terminal or reload your shell session and the command below should succeed:

$ symfony --help