mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-12-11 17:56:34 +00:00
Do not hide docker folder
This commit is contained in:
parent
cfe904dfe2
commit
256e63f535
7 changed files with 6 additions and 6 deletions
|
@ -1,3 +1,3 @@
|
||||||
.git*
|
.git*
|
||||||
.docker
|
docker
|
||||||
.Dockerfile.swp
|
.Dockerfile.swp
|
||||||
|
|
4
.github/workflows/run-tests.yml
vendored
4
.github/workflows/run-tests.yml
vendored
|
@ -51,7 +51,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Docker build
|
- name: Docker build
|
||||||
run: docker build -f .docker/Dockerfile -t libretranslate .
|
run: docker build -f docker/Dockerfile -t libretranslate .
|
||||||
|
|
||||||
- name: Docker build with some models
|
- name: Docker build with some models
|
||||||
run: docker build -f .docker/Dockerfile -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
|
### Build with Docker
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker build -f .docker/Dockerfile [--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.
|
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.
|
||||||
|
|
|
@ -5,7 +5,7 @@ services:
|
||||||
container_name: libretranslate-cuda
|
container_name: libretranslate-cuda
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: .docker/cuda.Dockerfile
|
dockerfile: docker/cuda.Dockerfile
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "5000:5000"
|
- "5000:5000"
|
||||||
|
|
|
@ -5,7 +5,7 @@ services:
|
||||||
container_name: libretranslate
|
container_name: libretranslate
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: .docker/cuda.Dockerfile
|
dockerfile: docker/cuda.Dockerfile
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "5000:5000"
|
- "5000:5000"
|
||||||
|
|
Loading…
Reference in a new issue