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}" "$@"