Skip to content

Dockerimage to run unoconv as a webservice using Flask and Flask-RESTful

License

Notifications You must be signed in to change notification settings

jordanorc/docker-unoconv-flask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-unoconv-flask

Dockerimage to run unoconv as a webservice using Flask and Flask-RESTful.

If you prefer a pre-build version it is available from hub.docker.com just do a regular pull

$ docker pull jordanorc/docker-unoconv-flask

Build

$ docker build -t docker-unoconv-flask .

Run - example

$ docker run -d -p 5000:5000 --name unoconv docker-unoconv-flask

or if you use the pre-build version

$ docker run -d -p 5000:5000 --name unoconv jordanorc/docker-unoconv-flask

Usage

Post the file you want to convert to the server and get the converted file in return.

API for the webservice is /unoconv/{format-to-convert-to} so a docx to pdf would be

$ curl --form [email protected] http://localhost:5000/unoconv/pdf/ > myfile.pdf

License

MIT

About

Dockerimage to run unoconv as a webservice using Flask and Flask-RESTful

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages