| FROM python:3.10-slim |
|
|
| ENV PIP_NO_CACHE_DIR=true \ |
| PYTHONDONTWRITEBYTECODE=1 \ |
| PYTHONUNBUFFERED=1 \ |
| NUMBA_DISABLE_CACHE=1 |
|
|
| RUN apt-get update && apt-get install -y \ |
| git ffmpeg libsndfile1 build-essential python3-dev libffi-dev wget curl \ |
| && apt-get clean |
|
|
| WORKDIR /app |
|
|
| COPY app.py app.py |
| COPY requirements.txt requirements.txt |
| COPY README.md README.md |
|
|
| RUN pip install --upgrade pip setuptools wheel |
| RUN pip install numpy==1.24.3 |
| RUN pip install git+https://github.com/openai/whisper.git |
| RUN pip install -r requirements.txt |
| RUN pip uninstall -y librosa |
| RUN pip install git+https://github.com/kamperh/librosa-no-numba.git |
| RUN pip install git+https://github.com/coqui-ai/TTS.git |
|
|
| CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"] |
|
|