diff --git a/Dockerfile b/Dockerfile index ffa7b3e..3545929 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,13 +13,14 @@ RUN useradd -u $GROUP_ID -g $USER_ID $USER # Install necessary dependencies RUN dnf install python38 -y && dnf clean all -# Set the working directory -WORKDIR /app - # Install whisper-ctranslate2 RUN pip3 install --no-cache-dir -U whisper-ctranslate2 USER $USER +# run once to download model +COPY silent.mp3 /tmp +RUN whisper-ctranslate2 --model medium -o /tmp /tmp/silent.mp3 + # Set the entry point ENTRYPOINT ["whisper-ctranslate2"] diff --git a/silent.mp3 b/silent.mp3 new file mode 100644 index 0000000..a3df1b2 Binary files /dev/null and b/silent.mp3 differ