From 7b1101df724aeaf95d6c25073091d24f19408b28 Mon Sep 17 00:00:00 2001 From: ale Date: Mon, 7 Oct 2024 13:19:53 +0200 Subject: [PATCH] with_models=true --- .drone.yml | 2 +- README.md | 8 ++++++-- docker-compose.yml | 1 - 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index b7af50d..1ff924e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -29,7 +29,7 @@ steps: - docker login -u $USER -p $PASS $REGISTRY - docker run --rm --privileged $REGISTRY/qemu-user-static --reset -p yes - git clone --recursive https://git.manalejandro.com/ale/libretranslate-api . - - cd LibreTranslate && docker buildx build --platform amd64 -t $REGISTRY/libretranslate-api -f ./docker/Dockerfile . + - cd LibreTranslate && docker buildx build --build-arg with_models=true --platform amd64 -t $REGISTRY/libretranslate-api -f ./docker/Dockerfile . - docker push $REGISTRY/libretranslate-api when: event: diff --git a/README.md b/README.md index 9febeb4..dd4e584 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ ### Install ``` -$ git clone --recurse-submodules https://gitlab.com/manalejandro/libretranslate-api +$ git clone --recurse-submodules https://git.manalejandro.com/ale/libretranslate-api $ cd libretranslate-api/ $ docker compose pull libretranslate-api $ docker compose build libretranslate @@ -25,7 +25,11 @@ $ curl "http://libretranslate-api:5080/?target=es&text=help" ### Latest docker images -Pull from [gitlab.com registry](https://gitlab.com/manalejandro/libretranslate-api/container_registry/) +Pull from manalejandro registry: + +``` +$ docker pull registry.manalejandro.com/libretranslate-api +``` ### License diff --git a/docker-compose.yml b/docker-compose.yml index 31d35b2..a257bc1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,6 @@ version: '3' services: libretranslate: - # image: registry.gitlab.com/manalejandro/libretranslate-api/libretranslate-api:latest image: libretranslate build: context: ./LibreTranslate