mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
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.
16 lines
407 B
Bash
Executable file
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"
|