#!/bin/bash

image="$1"
dirTest="$(dirname "$(readlink -f "$BASH_SOURCE")")"
dirContainer='/var/www/html/hello-world'

docker run -it --rm -v "$dirTest":"$dirContainer" -w "$dirContainer" "$image" php index.php

#!/bin/bash

image="$1"
dirTest="$(dirname "$(readlink -f "$BASH_SOURCE")")"
dirContainer='/var/www/html/hello-world'

docker run --rm -v "$dirTest":"$dirContainer":ro -w "$dirContainer" "$image" php index.php

Drop -it and add :ro to php test
Drop -it and add :ro to php test
