File size: 346 Bytes
03dd095
 
 
 
 
 
eb694c3
c0cc21d
eb694c3
 
c0cc21d
eb694c3
03dd095
 
c953da6
c0cc21d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM python:3.9-slim

WORKDIR /app

COPY . .

# Install dependencies and set executable permissions
RUN apt-get update && \
    apt-get install -y nginx && \
    pip install --no-cache-dir -r requirements.txt

# Expose port 7860 (as required by Hugging Face Spaces)
EXPOSE 7860

CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]