|
FROM python:3.10-bookworm |
|
|
|
ARG DEBIAN_FRONTEND=noninteractive |
|
|
|
|
|
RUN apt update && apt install -y portaudio19-dev && apt-get clean && rm -rf /var/lib/apt/lists/* |
|
|
|
|
|
RUN pip install --no-cache-dir -U "pip>=24" |
|
|
|
|
|
RUN mkdir /app |
|
WORKDIR /app |
|
|
|
|
|
RUN pip install --no-cache-dir torch --index-url https://download.pytorch.org/whl/cpu |
|
|
|
|
|
COPY requirements/server.txt /app/ |
|
RUN pip install --no-cache-dir -r server.txt && rm server.txt |
|
|
|
COPY whisper_live /app/whisper_live |
|
COPY run_server.py /app |
|
|
|
CMD ["python", "run_server.py"] |
|
|