This image (thanks to @sedir) executes a code2pdf ruby based (thanks to @lucascaton) that outputs a PDF with all source code localated at /code at the container (exposed using volume).
Execute docker image informing the source code at /code, the output PDF will be _.pdf.
docker run --rm -v $PWD:/code kelsoncm/code2pdf .You can ignore files to output putting a file named
.code2pdfas specified here https://github.com/lucascaton/code2pdf#blacklist-file-example .