File size: 786 Bytes
27247c4 |
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 |
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"]
|