-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathDockerfile.arm64
47 lines (35 loc) · 1.29 KB
/
Dockerfile.arm64
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
35
36
37
38
39
40
41
42
43
44
45
46
47
# Use an ARM64 base image
FROM --platform=linux/arm64 python:3.11-slim
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
&& apt-get clean
# Install PyTorch
RUN pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
ENV PYTHONUNBUFFERED=1
RUN apt-get update && \
apt-get install -y --no-install-recommends \
git \
git-lfs \
libsndfile1-dev \
locales && \
rm -rf /var/lib/apt/lists/*
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
locale-gen en_US.UTF-8 && \
update-locale LANG=en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
WORKDIR /workspace
COPY . /workspace/
ARG HUGGINGFACE_ACCESS_TOKEN
ENV HUGGINGFACE_ACCESS_TOKEN=${HUGGINGFACE_ACCESS_TOKEN}
# manually download ASR model
# diarization will be download automatically when running the script due to HF integration
RUN git lfs install
RUN git clone https://${HUGGINGFACE_ACCESS_TOKEN}:${HUGGINGFACE_ACCESS_TOKEN}@huggingface.co/Revai/reverb-asr /root/.cache/reverb/reverb_asr_v1
RUN pip3 install /workspace/
RUN pip3 install -r /workspace/diarization/requirements.txt
ENV PYTHONPATH=/workspace/asr/:$PYTHONPATH
RUN reverb --help
RUN python3 /workspace/diarization/infer_pyannote3.0.py --help