Convert any document to pdf or image using a docker webservice.
$ docker build -t convert .
$ docker run -d -p 3000:3000 --name convert convert
$ docker run -d -p 3000:3000 -e "APP_ENV=local" -e "APP_DEBUG=true" --name convert convert
Post the file you want to convert and get the converted file in return. The url for the convert webservice is http://dockerip/convert/{new-file-format}
$ curl --form file=@somedocument.docx http://192.168.99.100:3000/convert/pdf > newfile.pdf
$ curl --form file=@somedocument.docx http://192.168.99.100:3000/convert/jpg > newfile.jpg