Afnaan04's picture
Deploy project using Hugging Face API
3aa726a verified
Raw
History Blame Contribute Delete
392 Bytes
# Use Python 3.11 slim image
FROM python:3.11-slim
# Set working directory
WORKDIR /app
# Copy only the backend directory contents and model
COPY backend/ ./backend/
# Install dependencies
RUN pip install --no-cache-dir -r backend/requirements.txt
# Expose the default Hugging Face Space port
EXPOSE 7860
# Run the unified Flask server
CMD ["python", "backend/main.py"]