From aaafc12a52429836e525d42379e8d8c13ef3103e Mon Sep 17 00:00:00 2001 From: Guillaume Chervet Date: Tue, 12 Nov 2024 10:31:17 +0100 Subject: [PATCH] predowload whisper model --- production/docker-compose.yaml | 10 +++++----- production/ia-worker/Dockerfile | 3 +++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/production/docker-compose.yaml b/production/docker-compose.yaml index 09c0161..5b40888 100644 --- a/production/docker-compose.yaml +++ b/production/docker-compose.yaml @@ -37,11 +37,11 @@ services: redis: condition: service_healthy webapp: - build: - context: ./webapp - dockerfile: ./Dockerfile - image: local.io/webapp-transcriptor:local - #image: ghcr.io/guillaume-chervet/transcriptor-api:0.77.26 + # build: + # context: ./webapp + # dockerfile: ./Dockerfile + #image: local.io/webapp-transcriptor:local + image: ghcr.io/guillaume-chervet/transcriptor-webapp:0.77.28 restart: "no" ports: - "4000:8080" diff --git a/production/ia-worker/Dockerfile b/production/ia-worker/Dockerfile index 857e302..bf1acc8 100644 --- a/production/ia-worker/Dockerfile +++ b/production/ia-worker/Dockerfile @@ -68,5 +68,8 @@ USER appuser # Ajouter l'environnement virtuel au PATH ENV PATH="/usr/local/bin:${PATH}" +RUN pyhton -c "import whisper \ +whisper.load_model('small')" + # Commande pour démarrer l'application CMD ["python", "./app/main.py"]