drewThomasson commited on
Commit
cbed4d3
·
verified ·
1 Parent(s): 5716ff9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -1
Dockerfile CHANGED
@@ -10,7 +10,7 @@ RUN apt-get update && apt-get install -y \
10
  software-properties-common && \
11
  add-apt-repository ppa:deadsnakes/ppa && \
12
  apt-get update && apt-get install -y \
13
- python3.12 python3.12-venv python3.12-dev \
14
  wget git calibre ffmpeg libmecab-dev mecab mecab-ipadic python3-pip \
15
  && apt-get clean && rm -rf /var/lib/apt/lists/*
16
 
@@ -18,6 +18,11 @@ RUN apt-get update && apt-get install -y \
18
  RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.12 1 && \
19
  update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 1
20
 
 
 
 
 
 
21
  # Create and switch to a non-root user
22
  RUN useradd -m -u 1000 user
23
  USER user
 
10
  software-properties-common && \
11
  add-apt-repository ppa:deadsnakes/ppa && \
12
  apt-get update && apt-get install -y \
13
+ python3.12 python3.12-venv python3.12-dev python3.12-distutils \
14
  wget git calibre ffmpeg libmecab-dev mecab mecab-ipadic python3-pip \
15
  && apt-get clean && rm -rf /var/lib/apt/lists/*
16
 
 
18
  RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.12 1 && \
19
  update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 1
20
 
21
+ # Upgrade pip and ensure compatibility
22
+ RUN wget https://bootstrap.pypa.io/get-pip.py && \
23
+ python get-pip.py && \
24
+ rm get-pip.py
25
+
26
  # Create and switch to a non-root user
27
  RUN useradd -m -u 1000 user
28
  USER user