Build & Run LibreTranslate Docker Image for Offline Work

The documentation on https://hub.docker.com/r/libretranslate/libretranslate was a bit misleading, so here are the proper steps:

Building

git clone https://github.com/uav4geo/LibreTranslate
cd LibreTranslate
docker build --no-cache --progress=plain -f docker/Dockerfile --build-arg with_models=true -t libretranslate .

The above will take some time to build and download all the dictionaries for offline use.

Running

docker run -it -p 5000:5000 libretranslate

That’s it, Enjoy!

Sources

Unknown's avatar

About Ahmed Tawfik

Cybersecurity Professional, Systems Engineer, OSS & Linux Geek
This entry was posted in docker and tagged , . Bookmark the permalink.

Leave a comment