File size: 890 Bytes
313814b
3d5e897
313814b
3d5e897
313814b
 
cf23b08
 
d0feed8
3d5e897
cf23b08
39ee116
313814b
d7d34e3
39ee116
313814b
39ee116
c8f37a4
9f56267
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM ubuntu:22.04
# hadolint ignore=DL3008,DL3015,DL4006
RUN apt-get update && \
    apt-get install -y curl software-properties-common && \
    add-apt-repository ppa:deadsnakes/ppa && \
    apt-get update && \
    DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends python3.12 python3.12-distutils && \
    curl -sS https://bootstrap.pypa.io/get-pip.py | python3.12 && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir poetry==1.8.3
WORKDIR /root/faster-whisper-server
COPY pyproject.toml poetry.lock ./
RUN poetry install --only main
COPY ./faster_whisper_server ./faster_whisper_server
ENTRYPOINT ["poetry", "run"]
CMD ["uvicorn", "faster_whisper_server.main:app"]
ENV WHISPER_MODEL=Systran/faster-whisper-medium.en
ENV WHISPER_INFERENCE_DEVICE=cpu
ENV WHISPER_COMPUTE_TYPE=int8
ENV UVICORN_HOST=0.0.0.0
ENV UVICORN_PORT=8000