# Use a base image with Python | |
FROM python:3.9 | |
# Set the working directory | |
WORKDIR /app | |
# Copy all files to the container | |
COPY . . | |
# Install dependencies | |
RUN pip install --no-cache-dir -r requirements.txt | |
RUN apt-get update && apt-get install -y libgl1 | |
# Expose port (Hugging Face requires port 7860) | |
EXPOSE 7860 | |
# Run Flask | |
CMD ["python", "app.py"] |