VishnuRamDebyez commited on
Commit
308fabc
·
verified ·
1 Parent(s): cfed78a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -5
Dockerfile CHANGED
@@ -1,10 +1,17 @@
1
  FROM python:3.9-slim
2
 
3
- WORKDIR /app
4
 
5
- COPY requirements.txt .
6
- RUN pip install --no-cache-dir -r requirements.txt
 
 
 
 
 
7
 
8
- COPY . .
 
9
 
10
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
1
  FROM python:3.9-slim
2
 
3
+ WORKDIR /code
4
 
5
+ # Install dependencies
6
+ RUN pip install fastapi==0.104.1 \
7
+ uvicorn==0.24.0 \
8
+ python-dotenv==1.0.0 \
9
+ openai==1.3.0 \
10
+ pydantic==2.4.2 \
11
+ python-multipart==0.0.6
12
 
13
+ # Copy your application
14
+ COPY app.py .
15
 
16
+ # Command to run the application
17
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]