PHP Code Sniffer on Alpine Linux
To lint a single file:
docker run -it --rm -v $PWD:/tmp oberd/phpcs /tmp/MyFile.php
Remember that if you are running docker on a VM you will need to make sure the PHP target files are shared to the VM.
Integration with Sublime Text
You can use this fork of Sublime PHPCS to get it going.
Docker Pull Command