Spaces:
Runtime error
Runtime error
FROM python:3.9-slim | |
# Set the working directory | |
WORKDIR /app | |
# Copy the requirements and packages files | |
COPY requirements.txt . | |
COPY packages.txt . | |
# Install system dependencies | |
RUN apt-get update && apt-get install -y \ | |
ffmpeg \ | |
&& rm -rf /var/lib/apt/lists/* | |
# Install Python dependencies | |
RUN pip install --no-cache-dir -r requirements.txt | |
# Copy the application code | |
COPY app.py . | |
# Expose the application on port 7860 | |
EXPOSE 7860 | |
# Command to run the application | |
CMD ["python", "app.py"] |