mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-11-21 23:41:01 +00:00
fix docker build
This commit is contained in:
parent
75869e30ab
commit
1fd329ffd9
2 changed files with 3 additions and 3 deletions
4
.github/workflows/run-tests.yml
vendored
4
.github/workflows/run-tests.yml
vendored
|
@ -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 .
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue