fix docker

This commit is contained in:
dingedi 2023-01-12 14:23:29 +01:00
parent 5ea18f88db
commit c18a8d4855
No known key found for this signature in database
GPG key ID: EE23A12D271A3CED
3 changed files with 8 additions and 6 deletions

View file

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

View file

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

View file

@ -3,10 +3,12 @@ version: "3"
services:
libretranslate:
container_name: libretranslate
build: .
build:
context: .
dockerfile: .docker/cuda.Dockerfile
restart: unless-stopped
ports:
- 5000:5000
- "5000:5000"
## Uncomment above command and define your args if necessary
# command: --ssl --ga-id MY-GA-ID --req-limit 100 --char-limit 500
## Uncomment this section and the `volumes` section if you want to backup your API keys