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