From 528569720341bd7f186f5ebf6fc9e340f4ee858f Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Tue, 20 Dec 2022 10:36:31 -0500 Subject: [PATCH] Add db --- README.md | 4 ++-- db/.gitignore | 0 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 db/.gitignore diff --git a/README.md b/README.md index eae4215..b63f1f3 100644 --- a/README.md +++ b/README.md @@ -138,7 +138,7 @@ Then open a web browser to http://localhost:5000 ### Build with Docker ```bash -docker build [--build-arg with_models=true] -t libretranslate . +docker build [--build-arg with_models=true] -t libretranslate/libretranslate . ``` If you want to run the Docker image in a complete offline environment, you need to add the `--build-arg with_models=true` parameter. Then the language models are downloaded during the build process of the image. Otherwise these models get downloaded on the first run of the image/container. @@ -146,7 +146,7 @@ If you want to run the Docker image in a complete offline environment, you need Run the built image: ```bash -docker run -it -p 5000:5000 libretranslate [args] +./lt.sh [args] ``` Or build and run using `docker-compose`: diff --git a/db/.gitignore b/db/.gitignore new file mode 100644 index 0000000..e69de29