Test setup
docker build -f ./Dockerfile -t swoole-php .
On Linux or MacOS:
docker run --rm -p 9501:9501 -v $(pwd):/app -w /app swoole-php server.php
Or on Windows:
docker run --rm -p 9501:9501 -v C:/YOUR_DIR/:/app -w /app swoole-php server.php
You are able to access the hello world Swoole applicaiton from http://127.0.0.1:9501/
https://twitter.com/php_swoole/status/1269939058668683265/photo/1