Spaces:
Build error
Build error
# Use slim Python 3.6 base image | |
FROM python:3.6-slim | |
# Set environment variables | |
ENV PORT=7860 | |
ENV PYTHONUNBUFFERED=1 | |
# Install basic system dependencies (for common Python packages to build) | |
RUN apt-get update && apt-get install -y --no-install-recommends \ | |
build-essential \ | |
ffmpeg \ | |
git \ | |
curl \ | |
libgl1 \ | |
&& rm -rf /var/lib/apt/lists/* | |
# Install Python packages from requirements.txt | |
COPY requirements.txt /app/requirements.txt | |
WORKDIR /app | |
RUN pip install --no-cache-dir -r requirements.txt | |
# Copy all source code | |
COPY . /app | |
# Run the Gradio app (or your app entry point) | |
CMD ["python", "app.py"] | |