| FROM python:3.10-slim |
|
|
| |
| RUN apt-get update && apt-get install -y \ |
| ffmpeg \ |
| git \ |
| && rm -rf /var/lib/apt/lists/* |
|
|
| WORKDIR /app |
|
|
| |
| COPY requirements.txt . |
| RUN pip install --no-cache-dir -r requirements.txt |
|
|
| |
| RUN pip install --no-deps git+https://github.com/m-bain/whisperx.git@v3.3.1 |
|
|
| |
| RUN pip install --no-cache-dir \ |
| faster-whisper==1.1.0 \ |
| transformers==4.35.2 \ |
| tokenizers==0.15.0 \ |
| nltk \ |
| setuptools-rust |
|
|
| COPY app.py . |
|
|
| |
| ENV STREAMLIT_SERVER_PORT=7860 |
| ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0 |
| ENV STREAMLIT_SERVER_ENABLE_XSRF_PROTECTION=false |
|
|
| |
| ENV STREAMLIT_SERVER_MAX_UPLOAD_SIZE=5000 |
|
|
| EXPOSE 7860 |
|
|
| CMD ["streamlit", "run", "app.py"] |