-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (23 loc) · 921 Bytes
/
Copy pathDockerfile
File metadata and controls
32 lines (23 loc) · 921 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
# Dockerfile for running Galician ASR (wav2vec2 + KenLM)
# Model: proxectonos/Nos_ASR-wav2vec2-large-xlsr-53-gl-with-lm (HuggingFace)
FROM python:3.10-slim-bookworm
ENV VIRTUAL_ENV=/opt/venv
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential gcc g++ cmake \
ffmpeg libsndfile1 \
libboost-system-dev libboost-thread-dev libboost-program-options-dev \
libboost-test-dev libeigen3-dev zlib1g-dev libbz2-dev liblzma-dev \
git curl ca-certificates \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN python -m venv "$VIRTUAL_ENV"
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
RUN pip install --quiet --upgrade pip setuptools wheel
COPY requirements.txt /app/requirements.txt
RUN pip install --quiet -r /app/requirements.txt \
&& rm -rf /root/.cache/pip
COPY . /app
WORKDIR /app
ENV PYTHONUNBUFFERED=1
ENV HF_HOME=/app/models/.hf_cache