File size: 633 Bytes
7b74e1c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
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
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
|