|
FROM python:3.9 |
|
|
|
RUN apt-get update && \ |
|
apt-get install -y --no-install-recommends \ |
|
ffmpeg |
|
|
|
RUN python3 -m pip install --upgrade pip |
|
|
|
|
|
WORKDIR /usr/src/app |
|
|
|
|
|
RUN pip3 install \ |
|
torch==1.13.1+cpu \ |
|
torchaudio==0.13.1+cpu \ |
|
-f https://download.pytorch.org/whl/torch_stable.html |
|
|
|
|
|
COPY requirements.txt /usr/src/app/requirements.txt |
|
RUN cd /usr/src/app/ && pip3 install -r requirements.txt |
|
|
|
|
|
COPY setup.py /usr/src/app/setup.py |
|
COPY whisper_timestamped /usr/src/app/whisper_timestamped |
|
|
|
|
|
RUN cd /usr/src/app/ && pip3 install ".[dev]" |
|
|
|
|
|
RUN rm -R /usr/src/app/requirements.txt /usr/src/app/setup.py /usr/src/app/whisper_timestamped |
|
|
|
|
|
COPY tests /usr/src/app/tests |
|
|
|
ENTRYPOINT ["/bin/bash"] |