Skip to content

Commit

Permalink
fix: Take the first language from LANG env variable for ENTRYPOINT
Browse files Browse the repository at this point in the history
- Modify ENTRYPOINT in Dockerfile to get the first language from LANG environment variable

Signed-off-by: 陳鈞 <[email protected]>
  • Loading branch information
jim60105 committed Nov 30, 2023
1 parent d26ad32 commit 70efda7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}" "$@"

0 comments on commit 70efda7

Please sign in to comment.