krish-sai commited on
Commit
d2eda25
·
verified ·
1 Parent(s): 2e9525f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -2
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM python:3.8-slim # Change from 3.9-slim to 3.8-slim
2
 
3
  WORKDIR /app
4
 
@@ -9,7 +9,9 @@ RUN apt-get update && apt-get install -y \
9
  git \
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
- RUN pip install --upgrade pip # Keep this, it's good practice
 
 
13
 
14
  COPY requirements.txt ./
15
  COPY src/ ./src/
 
1
+ FROM python:3.8-slim # Corrected line: Removed '>>>' and moved comment for clarity
2
 
3
  WORKDIR /app
4
 
 
9
  git \
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
+ # IMPORTANT FIX: Upgrade pip inside the container before installing requirements
13
+ RUN pip install --upgrade pip
14
+ # END IMPORTANT FIX
15
 
16
  COPY requirements.txt ./
17
  COPY src/ ./src/