From 24fb27dfe48ec1b7f2f4c57459c910178c940737 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20T?= Date: Mon, 3 Apr 2023 10:39:00 +0200 Subject: [PATCH 1/3] upgrade babel --- docker/cuda.Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/cuda.Dockerfile b/docker/cuda.Dockerfile index 03b89b3..7cb3543 100644 --- a/docker/cuda.Dockerfile +++ b/docker/cuda.Dockerfile @@ -34,7 +34,7 @@ RUN if [ "$with_models" = "true" ]; then \ fi # Install package from source code -RUN pip3 install Babel==2.11.0 && python3 scripts/compile_locales.py \ +RUN pip3 install Babel==2.12.1 && python3 scripts/compile_locales.py \ && pip3 install . \ && pip3 cache purge From 6a9c34d4082ce01a1990c8a7c2eadf1e624eca3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20T?= Date: Mon, 3 Apr 2023 10:39:22 +0200 Subject: [PATCH 2/3] prevent install all models --- docker/cuda.Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/cuda.Dockerfile b/docker/cuda.Dockerfile index 7cb3543..0abe4f4 100644 --- a/docker/cuda.Dockerfile +++ b/docker/cuda.Dockerfile @@ -1,7 +1,7 @@ FROM nvidia/cuda:11.2.2-devel-ubuntu20.04 ENV ARGOS_DEVICE_TYPE cuda -ARG with_models=true +ARG with_models=false ARG models="" WORKDIR /app From 8e9142adcb5509e6d8750f1c3921f09eae2f405a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20T?= Date: Mon, 3 Apr 2023 10:40:28 +0200 Subject: [PATCH 3/3] remove arm64 build for docker cuda image --- .github/workflows/publish-docker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-docker.yml b/.github/workflows/publish-docker.yml index 8a63a19..d2404cf 100644 --- a/.github/workflows/publish-docker.yml +++ b/.github/workflows/publish-docker.yml @@ -48,7 +48,7 @@ jobs: uses: docker/build-push-action@v2 with: file: ./docker/cuda.Dockerfile - platforms: linux/amd64,linux/arm64 + platforms: linux/amd64 tags: ${{ steps.get-variables.outputs.gh-username-lower }}/libretranslate:${{ env.TAG }}-cuda push: true cache-from: type=gha