1MR commited on
Commit
6b1c019
·
verified ·
1 Parent(s): c1cc510

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -7,8 +7,9 @@ WORKDIR /code
7
  # Copy the requirements file
8
  COPY ./requirements.txt /code/requirements.txt
9
 
10
- # Update pip and install dependencies
11
- RUN pip install --no-cache-dir --upgrade pip && pip install --no-cache-dir --upgrade -r /code/requirements.txt
 
12
 
13
  # Set up a new user named "user" with user ID 1000
14
  RUN useradd -m -u 1000 user
 
7
  # Copy the requirements file
8
  COPY ./requirements.txt /code/requirements.txt
9
 
10
+ # Update pip and install `packaging` first to avoid dependency issues
11
+ RUN pip install --no-cache-dir --upgrade pip packaging && \
12
+ pip install --no-cache-dir --upgrade -r /code/requirements.txt
13
 
14
  # Set up a new user named "user" with user ID 1000
15
  RUN useradd -m -u 1000 user