leedoming commited on
Commit
d88e31f
·
verified ·
1 Parent(s): 32cba52

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -1
Dockerfile CHANGED
@@ -1,5 +1,5 @@
1
  # Use an official Python runtime as a parent image
2
- FROM python:3.9-slim
3
 
4
  # Set the working directory in the container
5
  WORKDIR /app
@@ -7,6 +7,17 @@ WORKDIR /app
7
  # Copy the current directory contents into the container at /app
8
  COPY . /app
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
2
+ FROM python:3.12
3
 
4
  # Set the working directory in the container
5
  WORKDIR /app
 
7
  # Copy the current directory contents into the container at /app
8
  COPY . /app
9
 
10
+ # Install system dependencies
11
+ RUN apt-get update && apt-get install -y \
12
+ build-essential \
13
+ curl \
14
+ software-properties-common \
15
+ git \
16
+ && rm -rf /var/lib/apt/lists/*
17
+
18
+ # Upgrade pip
19
+ RUN pip install --no-cache-dir --upgrade pip
20
+
21
  # Install any needed packages specified in requirements.txt
22
  RUN pip install --no-cache-dir -r requirements.txt
23