# Use a Python base image | |
FROM python:3.9-slim | |
# Set working directory | |
WORKDIR /app | |
# Copy all project files to the container | |
COPY . . | |
# Install Python dependencies | |
RUN pip install -r huggingface_docker/requirements.txt | |
# Expose the port Flask will run on (required by Hugging Face Spaces) | |
EXPOSE 5000 | |
# Run the Flask app | |
CMD ["python", "backend/app.py"] |