diff --git a/.dockerignore b/.dockerignore index 942f938..751b8ae 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,3 +1,3 @@ .git* -Dockerfile +.docker .Dockerfile.swp diff --git a/docker-compose.cuda.yml b/docker-compose.cuda.yml index 4535243..84cab59 100644 --- a/docker-compose.cuda.yml +++ b/docker-compose.cuda.yml @@ -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: diff --git a/docker-compose.yml b/docker-compose.yml index bc9bbe2..69840d0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 @@ -16,4 +18,4 @@ services: # - libretranslate_api_keys:/app/db/api_keys.db # volumes: -# libretranslate_api_keys: \ No newline at end of file +# libretranslate_api_keys: