Spaces:
Running
Running
FROM python:3.10-slim | |
# Install system dependencies | |
RUN apt-get update && apt-get install -y \ | |
ffmpeg \ | |
git \ | |
curl \ | |
&& apt-get clean \ | |
&& rm -rf /var/lib/apt/lists/* | |
# Set work directory | |
WORKDIR /app | |
# Copy files | |
COPY . /app | |
# Install Python dependencies | |
RUN pip install --upgrade pip \ | |
&& pip install -r requirements.txt | |
# Expose the port for Flask | |
EXPOSE 7860 | |
# Run the app | |
CMD ["python", "app.py"] | |