coderMayank69 commited on
Commit
d25b15b
·
1 Parent(s): ff84a08

optimised the code

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -1
  2. requirements.txt +1 -1
Dockerfile CHANGED
@@ -3,11 +3,12 @@ FROM python:3.11-slim
3
  ENV PYTHONDONTWRITEBYTECODE=1
4
  ENV PYTHONUNBUFFERED=1
5
  ENV PORT=7860
 
6
 
7
  WORKDIR /app
8
 
9
  COPY requirements.txt ./
10
- RUN pip install --no-cache-dir -r requirements.txt
11
 
12
  COPY . .
13
 
 
3
  ENV PYTHONDONTWRITEBYTECODE=1
4
  ENV PYTHONUNBUFFERED=1
5
  ENV PORT=7860
6
+ ENV PIP_DEFAULT_TIMEOUT=240
7
 
8
  WORKDIR /app
9
 
10
  COPY requirements.txt ./
11
+ RUN pip install --no-cache-dir --retries 10 -r requirements.txt
12
 
13
  COPY . .
14
 
requirements.txt CHANGED
@@ -1,5 +1,5 @@
1
  fastapi==0.115.12
2
- uvicorn[standard]==0.34.0
3
  pydantic==2.11.7
4
  openai==2.7.2
5
  requests==2.32.3
 
1
  fastapi==0.115.12
2
+ uvicorn[standard]==0.38.0
3
  pydantic==2.11.7
4
  openai==2.7.2
5
  requests==2.32.3