Create Dockerfile.cpu
This commit is contained in:
31
Dockerfile.cpu
Normal file
31
Dockerfile.cpu
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
FROM ubuntu:22.04
|
||||||
|
|
||||||
|
WORKDIR /subgen
|
||||||
|
|
||||||
|
RUN apt-get update \
|
||||||
|
&& apt-get install -y \
|
||||||
|
python3 \
|
||||||
|
python3-pip \
|
||||||
|
ffmpeg \
|
||||||
|
&& apt-get clean \
|
||||||
|
&& rm -rf /var/lib/apt/lists/* \
|
||||||
|
&& pip3 install \
|
||||||
|
numpy \
|
||||||
|
stable-ts \
|
||||||
|
fastapi \
|
||||||
|
requests \
|
||||||
|
faster-whisper \
|
||||||
|
uvicorn \
|
||||||
|
python-multipart \
|
||||||
|
python-ffmpeg \
|
||||||
|
whisper \
|
||||||
|
transformers \
|
||||||
|
accelerate \
|
||||||
|
optimum
|
||||||
|
|
||||||
|
ENV PYTHONUNBUFFERED=1
|
||||||
|
|
||||||
|
ADD https://raw.githubusercontent.com/McCloudS/subgen/main/launcher.py /subgen/launcher.py
|
||||||
|
ADD https://raw.githubusercontent.com/McCloudS/subgen/main/subgen/subgen.py /subgen/subgen.py
|
||||||
|
|
||||||
|
CMD [ "bash", "-c", "python3 -u launcher.py && python3 -u subgen.py" ]
|
||||||
Reference in New Issue
Block a user