Browse Source

Do not hide docker folder

pull/391/head
Piero Toffanin 2 years ago
parent
commit
256e63f535
  1. 2
      .dockerignore
  2. 4
      .github/workflows/run-tests.yml
  3. 2
      README.md
  4. 2
      docker-compose.cuda.yml
  5. 2
      docker-compose.yml
  6. 0
      docker/Dockerfile
  7. 0
      docker/cuda.Dockerfile

2
.dockerignore

@ -1,3 +1,3 @@
.git*
.docker
docker
.Dockerfile.swp

4
.github/workflows/run-tests.yml

@ -51,7 +51,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- 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
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 .

2
README.md

@ -139,7 +139,7 @@ Then open a web browser to http://localhost:5000
### Build with Docker
```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.

2
docker-compose.cuda.yml

@ -5,7 +5,7 @@ services:
container_name: libretranslate-cuda
build:
context: .
dockerfile: .docker/cuda.Dockerfile
dockerfile: docker/cuda.Dockerfile
restart: unless-stopped
ports:
- "5000:5000"

2
docker-compose.yml

@ -5,7 +5,7 @@ services:
container_name: libretranslate
build:
context: .
dockerfile: .docker/cuda.Dockerfile
dockerfile: docker/cuda.Dockerfile
restart: unless-stopped
ports:
- "5000:5000"

0
.docker/Dockerfile → docker/Dockerfile

0
.docker/cuda.Dockerfile → docker/cuda.Dockerfile

Loading…
Cancel
Save