Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
McCloudS authored Feb 5, 2024
1 parent bfa281c commit b9c9264
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,23 @@ FROM nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu22.04
VOLUME /subgen
WORKDIR /subgen

RUN apt-get update && apt-get -y install python3 python3-pip ffmpeg
RUN pip3 install numpy stable-ts fastapi requests faster-whisper uvicorn python-multipart python-ffmpeg whisper

ENV PYTHONUNBUFFERED 1
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

ADD https://raw.githubusercontent.com/McCloudS/subgen/main/subgen/subgen.py /subgen/subgen.py

Expand Down

0 comments on commit b9c9264

Please sign in to comment.