kohlin commited on
Commit
e124a7d
·
1 Parent(s): ab6ceec

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -1,5 +1,5 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.8-slim
3
 
4
  # Set the working directory in the container
5
  WORKDIR /app
@@ -7,6 +7,9 @@ WORKDIR /app
7
  # Copy the requirements file into the container
8
  COPY requirements.txt .
9
 
 
 
 
10
  # Install any needed packages specified in requirements.txt
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
 
1
+ # Use an official Python runtime as a parent image (updated to Python 3.9-slim)
2
+ FROM python:3.9-slim
3
 
4
  # Set the working directory in the container
5
  WORKDIR /app
 
7
  # Copy the requirements file into the container
8
  COPY requirements.txt .
9
 
10
+ # Upgrade pip to the latest version
11
+ RUN pip install --upgrade pip
12
+
13
  # Install any needed packages specified in requirements.txt
14
  RUN pip install --no-cache-dir -r requirements.txt
15