-
Notifications
You must be signed in to change notification settings - Fork 93
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (29 loc) · 807 Bytes
/
Dockerfile
File metadata and controls
34 lines (29 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM debian:bookworm-slim
ARG TARGETARCH
ARG TARGETVARIANT
# Install faster-whisper
WORKDIR /usr/src
COPY ./pyproject.toml ./
RUN \
apt-get update \
&& apt-get install -y --no-install-recommends \
python3 \
python3-pip \
python3-venv \
\
&& python3 -m venv .venv \
&& .venv/bin/pip3 install --no-cache-dir -U \
setuptools \
wheel \
&& .venv/bin/pip3 install --no-cache-dir \
--extra-index-url 'https://download.pytorch.org/whl/cpu' \
'torch==2.6.0' \
\
&& .venv/bin/pip3 install --no-cache-dir \
--extra-index-url https://www.piwheels.org/simple \
-e '.[zeroconf,transformers,sherpa,onnx-asr]' \
\
&& rm -rf /var/lib/apt/lists/*
COPY ./ ./
EXPOSE 10400
ENTRYPOINT ["bash", "docker_run.sh"]