docker run -p 80:80 -d -v /PATH/TO/THE/CGI/APP:/var/www/my_site:ro dlakomy/perl-fcgi
You need to provide the path to your CGI app's folder containing its index file (I capitalised the place for it above). Don't modify this part:
/var/www/my_site. Of course you can map another port, instead of
80. Just replace the first
80 above with the port number you want to use.
- Denis S. Filimonov (fastcgi-wrapper.pl author),
- Soumik Ghosh (the author of the guide I used),
- nginx team (many thanks for providing the official Docker).
The GitHub repository can be found here.