| FROM python:3.10-slim |
|
|
| WORKDIR /app |
|
|
| |
| RUN apt-get update && apt-get install -y \ |
| git git-lfs ffmpeg libsm6 libxext6 cmake rsync libgl1 build-essential curl \ |
| && rm -rf /var/lib/apt/lists/* |
|
|
| |
| RUN pip install --no-cache-dir pip -U |
| RUN pip install --no-cache-dir Cython wheel setuptools |
|
|
| |
| RUN pip install --no-cache-dir --no-build-isolation youtokentome |
|
|
| |
| |
| RUN pip install --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu |
|
|
| |
| RUN pip install --no-cache-dir nemo_toolkit[asr]==1.23.0 |
|
|
| |
| COPY requirements.txt /app/ |
| RUN pip install --no-cache-dir -r requirements.txt |
|
|
| |
| COPY . /app/ |
|
|
| |
| EXPOSE 7860 |
|
|
| |
| CMD ["python", "app.py"] |