Spaces:
Build error
Build error
| # ββ Base image ββ | |
| FROM python:3.10-slim | |
| # ββ System dependencies ββ | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| libsndfile1 \ | |
| ffmpeg \ | |
| curl \ | |
| git \ | |
| && apt-get clean \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # ββ Upgrade pip ββ | |
| RUN pip install --upgrade pip | |
| # ββ Install Python packages from requirements.txt ββ | |
| COPY requirements.txt /tmp/requirements.txt | |
| RUN pip install --no-cache-dir -r /tmp/requirements.txt | |
| # ββ Set working directory ββ | |
| WORKDIR /app | |
| # ββ Copy the application ββ | |
| COPY app.py . | |
| # ββ Environment variables ββ | |
| ENV COQUI_TOS_AGREED=1 | |
| ENV HF_HOME=/app/.cache/huggingface | |
| ENV OMP_NUM_THREADS=4 | |
| ENV MKL_NUM_THREADS=4 | |
| # ββ Expose port ββ | |
| EXPOSE 7860 | |
| # ββ Run the app ββ | |
| CMD ["python", "app.py"] |