File size: 392 Bytes
3aa726a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 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"]