Update Dockerfile.cpu

This commit is contained in:
McCloudS
2024-03-16 14:32:08 -06:00
committed by GitHub
parent 8c936f246f
commit 8362340d3b

View File

@@ -1,12 +1,14 @@
FROM alpine FROM bookworm-slim
WORKDIR /subgen WORKDIR /subgen
RUN apk add --no-cache \ RUN apt-get update \
python3 \ && apt-get install -y \
cmd:pip3 \ python3 \
ffmpeg \ python3-pip \
bash \ ffmpeg \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& pip3 install \ && pip3 install \
numpy \ numpy \
stable-ts \ stable-ts \
@@ -19,8 +21,7 @@ RUN apk add --no-cache \
whisper \ whisper \
transformers \ transformers \
accelerate \ accelerate \
optimum \ optimum
--break-system-packages
ENV PYTHONUNBUFFERED=1 ENV PYTHONUNBUFFERED=1