lbry.com/docker.sh
Fabrizio Lungo f2a8c8a0c5 Fixed Docker script and README
Updated the Docker script to start the site correctly. The DIR variable was not being used in each place which it should have been used and this has allowed the removal of the `readlink -f` command which had compatibility issues with MacOS (#297).

The README did not have the change in name for the docker script reflected in all references so this has also been corrected.
2018-01-20 17:58:38 +00:00

16 lines
407 B
Bash
Executable file

#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [ ! -e "$DIR/data/config.php" ]; then
cp "$DIR/data/config.php.example" "$DIR/data/config.php"
fi
docker run --rm -it --name "dev.lbry.io" \
-v "$DIR:/usr/src/lbry.io" \
-w "/usr/src/lbry.io" \
-p "127.0.0.1:8000:8000" \
-u "$(id -u):$(id -g)" \
php:7-alpine \
php --server "0.0.0.0:8000" --docroot "web/" "index.php"