Proof of concept on running Hyperf's Nano with Spiral's Goridge
Build the Docker image with PHP, Composer, Swoole and Go.
make image
Run a container.
make up
Start an interactive shell.
make sh
Inside the container
Run the Go app with:
go run -mod=readonly .
readonly
is to avoid confusion on Composer'svendor/
and Go'svendor/
.
Install PHP dependencies.
composer install
Run the Nano command.
php app.php hello-go