Spaces:
Runtime error
Runtime error
FROM python:3.9 | |
WORKDIR /app | |
# Install system dependencies | |
RUN apt-get update && apt-get install -y \ | |
build-essential \ | |
libsndfile1 \ | |
&& rm -rf /var/lib/apt/lists/* | |
# Copy requirements first to leverage Docker cache | |
COPY requirements.txt . | |
RUN pip install --no-cache-dir -r requirements.txt | |
# Copy the rest of the application | |
COPY . . | |
# Create necessary directories | |
RUN mkdir -p models/saved_models models/llm temp | |
# Set environment variables | |
ENV PYTHONUNBUFFERED=1 | |
ENV PORT=7860 | |
# Expose the port | |
EXPOSE 7860 | |
# Run the application | |
CMD ["python", "app.py"] |