Spaces:
Running
on
Zero
Running
on
Zero
# Base image with Python | |
FROM python:3.10-slim | |
# Install system dependencies required by dlib and others | |
RUN apt-get update && apt-get install -y \ | |
cmake \ | |
build-essential \ | |
libopenblas-dev \ | |
liblapack-dev \ | |
libx11-dev \ | |
libgtk-3-dev \ | |
wget \ | |
&& rm -rf /var/lib/apt/lists/* | |
# Set working directory | |
WORKDIR /app | |
# Copy requirement file and install Python dependencies | |
COPY requirements.txt . | |
RUN pip install --upgrade pip | |
RUN pip install -r requirements.txt | |
# Copy the rest of the app | |
COPY . . | |
# Run the app (update this to your actual entry point) | |
CMD ["python", "-m", "gradio", "app"] | |