anvisinghh commited on
Commit
050cf07
·
verified ·
1 Parent(s): 4286204

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -8
Dockerfile CHANGED
@@ -12,15 +12,11 @@ RUN apt-get update && apt-get install -y \
12
  # Copy the requirements file
13
  COPY requirements.txt .
14
 
15
- # Install the necessary libraries using the logic from your initial file
16
- # Upgraded to 2.30.0 to satisfy openenv-core 0.2.3's dependency on openai >= 2.7.2
 
17
  RUN pip install --no-cache-dir --upgrade pip setuptools wheel && \
18
- pip install --no-cache-dir \
19
- fastapi==0.109.0 \
20
- uvicorn==0.27.0 \
21
- pydantic==2.6.1 \
22
- openai==2.30.0 \
23
- openenv-core==0.2.3
24
 
25
  # Copy the rest of your application code
26
  COPY . .
 
12
  # Copy the requirements file
13
  COPY requirements.txt .
14
 
15
+ # THE FINAL FIX:
16
+ # We upgrade pip/setuptools/wheel first, then install the core.
17
+ # We stop hard-pinning sub-dependencies to allow the resolver to work.
18
  RUN pip install --no-cache-dir --upgrade pip setuptools wheel && \
19
+ pip install --no-cache-dir -r requirements.txt
 
 
 
 
 
20
 
21
  # Copy the rest of your application code
22
  COPY . .