- Edit
Dockerfile
by setting PHP and Phalcon versions docker build -t phalcon_ext_builder .
docker run -d --name phalcon_ext_builder phalcon_ext_builder
docker exec -it phalcon_ext_builder bash
ls /usr/local/lib/php/extensions
->no-debug-non-zts-20190902
is the dir you need (change "20190902" with another value if it differs)exit
docker cp phalcon_ext_builder:/usr/local/lib/php/extensions/no-debug-non-zts-20190902/phalcon.so ./phalcon.so
docker stop phalcon_ext_builder && docker rm phalcon_ext_builder
docker image rm phalcon_ext_builder