File size: 352 Bytes
15a5a7a
 
308fabc
15a5a7a
308fabc
 
 
 
 
 
 
15a5a7a
308fabc
 
15a5a7a
308fabc
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM python:3.9-slim

WORKDIR /code

# Install dependencies
RUN pip install fastapi==0.104.1 \
    uvicorn==0.24.0 \
    python-dotenv==1.0.0 \
    openai==1.3.0 \
    pydantic==2.4.2 \
    python-multipart==0.0.6

# Copy your application
COPY app.py .

# Command to run the application
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]