ssh [user]@[host]
Passwort bei Aufforderung eingeben
...with Docker as only dependency.
No local installations of PHP or composer needed!
This example uses Symfony Flex and symfony/skeleton which contains just the minimum parts of a Symfony project.
You'll find further informations at Symfony docs: https://symfony.com/doc/current/setup/flex.html
| #!/usr/bin/env bash | |
| tty= | |
| tty -s && tty=--tty | |
| docker run \ | |
| $tty \ | |
| --interactive \ | |
| --rm \ | |
| --user $(id -u):$(id -g) \ | |
| --volume /etc/passwd:/etc/passwd:ro \ |
This script can be used to serv a symfony application at your current work dir without the need of having php installed locally.
The only requirement is a running Docker instance.
Basic usage:
Uses 8000 as public port and my-project as container name.
./run