Spaces:
Running
Running
FROM python:3.10-slim | |
# Install system dependencies | |
RUN apt-get update && apt-get install -y git ffmpeg libsndfile1 && apt-get clean | |
# Set Hugging Face cache to a writable location | |
ENV TRANSFORMERS_CACHE=/tmp/hf_cache | |
ENV HF_HOME=/tmp/hf_home | |
# Set working directory | |
WORKDIR /app | |
# Copy files | |
COPY . /app | |
# Install Python dependencies | |
RUN pip install --upgrade pip | |
RUN pip install -r requirements.txt | |
# Expose port | |
EXPOSE 7860 | |
# Run app | |
CMD ["python", "app.py"] | |