From 1fd329ffd9f478d1177b34bdae95dc360bbbbe06 Mon Sep 17 00:00:00 2001 From: dingedi Date: Thu, 12 Jan 2023 14:39:17 +0100 Subject: [PATCH] fix docker build --- .github/workflows/run-tests.yml | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index eba163c..7bfc4b6 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -51,7 +51,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Docker build - run: docker build -t libretranslate . + run: docker build -f .docker/Dockerfile -t libretranslate . - name: Docker build with some models - run: docker build -t libretranslate --build-arg models=en,es . + run: docker build -f .docker/Dockerfile -t libretranslate --build-arg models=en,es . diff --git a/README.md b/README.md index 25d6ba1..978b603 100644 --- a/README.md +++ b/README.md @@ -139,7 +139,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 -f .docker/Dockerfile [--build-arg with_models=true] -t 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.