File size: 366 Bytes
d03db4e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM python:3.9-slim

WORKDIR /app

# Copy the entire directory
COPY . /app

# Install dependencies
RUN pip install --no-cache-dir -r backend/requirements.txt

# Hugging Face Spaces strictly requires port 7860
ENV PORT=7860
EXPOSE 7860

# Change to backend directory so paths resolve correctly
WORKDIR /app/backend

# Start the application
CMD ["python", "main.py"]