From 82754f39dfe14cfde90c20c2651caa9f7a0159e0 Mon Sep 17 00:00:00 2001 From: McCloudS <64094529+McCloudS@users.noreply.github.com> Date: Tue, 19 Mar 2024 14:41:38 -0600 Subject: [PATCH] Update Dockerfile.cpu --- Dockerfile.cpu | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/Dockerfile.cpu b/Dockerfile.cpu index 722aeab..2001e25 100644 --- a/Dockerfile.cpu +++ b/Dockerfile.cpu @@ -2,25 +2,16 @@ FROM python:3.11-slim-bullseye WORKDIR /subgen +ADD https://raw.githubusercontent.com/McCloudS/subgen/main/requirements.txt /subgen/requirements.txt + RUN apt-get update \ && apt-get install -y \ + python3 \ + python3-pip \ ffmpeg \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* \ - && pip install \ - numpy \ - stable-ts \ - fastapi \ - requests \ - faster-whisper \ - uvicorn \ - python-multipart \ - python-ffmpeg \ - whisper \ - transformers \ - accelerate \ - optimum \ - watchdog + && pip install -r requirements.txt ENV PYTHONUNBUFFERED=1