Spaces:
Sleeping
Sleeping
FROM python:3.10-slim | |
# System deps | |
RUN apt-get update && apt-get install -y \ | |
espeak-ng \ | |
&& rm -rf /var/lib/apt/lists/* | |
# Set environment variable to avoid caching issues | |
ENV PYTHONPYCACHEPREFIX=/tmp/pycache | |
ENV LIBROSA_CACHE_DIR=/tmp/librosa_cache | |
# Prevent Numba/librosa caching errors | |
ENV NUMBA_DISABLE_CACHE=1 | |
# Set working directory | |
WORKDIR /app | |
# Copy and install Python dependencies | |
COPY requirements.txt . | |
RUN pip install --no-cache-dir -r requirements.txt | |
# App | |
COPY app.py . | |
CMD ["python", "app.py"] | |