Update Dockerfile.cpu
This commit is contained in:
@@ -1,17 +1,25 @@
|
|||||||
FROM ubuntu:22.04
|
FROM alpine
|
||||||
|
|
||||||
WORKDIR /subgen
|
WORKDIR /subgen
|
||||||
|
|
||||||
COPY cpu_requirements.txt cpu_requirements.txt
|
RUN apk add --no-cache \
|
||||||
|
python3 \
|
||||||
RUN apt-get update \
|
python3-pip \
|
||||||
&& apt-get install -y \
|
ffmpeg \
|
||||||
python3 \
|
bash \
|
||||||
python3-pip \
|
&& pip3 install \
|
||||||
ffmpeg \
|
numpy \
|
||||||
&& apt-get clean \
|
stable-ts \
|
||||||
&& rm -rf /var/lib/apt/lists/* \
|
fastapi \
|
||||||
&& pip3 install -r cpu_requirements.txt --no-deps
|
requests \
|
||||||
|
faster-whisper \
|
||||||
|
uvicorn \
|
||||||
|
python-multipart \
|
||||||
|
python-ffmpeg \
|
||||||
|
whisper \
|
||||||
|
transformers \
|
||||||
|
accelerate \
|
||||||
|
optimum
|
||||||
|
|
||||||
ENV PYTHONUNBUFFERED=1
|
ENV PYTHONUNBUFFERED=1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user