lbry.com/dev-docker.sh
Fabrizio Lungo 2ec174b685 Added dev-docker.sh for developing with Docker
Developing using Docker is now simple and avoids the need to install PHP on the developer's host machine. Common code from `dev.sh` and `dev-docker.sh` has been extracted into a `dev-prepare.sh`. README contains instructions on how to use both dev scripts - which the developer can choose based on their preference.
2017-04-17 09:55:13 -04:00

11 lines
284 B
Bash
Executable file

#!/bin/bash
source dev-prepare.sh
docker run --rm -it --name "dev.lbry.io" \
-v "$(readlink -f .):/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/" "web/index.php"