From 70efda7ef43e9dbd7dd93a7286b8abb3ebe1accb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=B3=E9=88=9E?= Date: Thu, 30 Nov 2023 23:52:35 +0800 Subject: [PATCH] fix: Take the first language from LANG env variable for ENTRYPOINT MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Modify ENTRYPOINT in Dockerfile to get the first language from LANG environment variable Signed-off-by: 陳鈞 --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 56f86cc..19351ba 100644 --- a/Dockerfile +++ b/Dockerfile @@ -93,4 +93,6 @@ USER 1001 WORKDIR /app STOPSIGNAL SIGINT -ENTRYPOINT whisperx --model ${WHISPER_MODEL} --language ${LANG} $@ +# Take the first language from LANG env variable +ENTRYPOINT LANG=$(echo ${LANG} | cut -d ' ' -f1) && \ + whisperx --model "${WHISPER_MODEL}" --language "${LANG}" "$@"