ThongCoding commited on
Commit
e944e3d
·
verified ·
1 Parent(s): e7327f0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -12
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM ubuntu:22.04
2
 
3
  ENV DEBIAN_FRONTEND=noninteractive
4
 
@@ -12,7 +12,7 @@ RUN apt-get update && apt-get install -y software-properties-common \
12
  && DEBIAN_FRONTEND=noninteractive \
13
  apt-get -y install apt-fast \
14
  && echo "DOWNLOADBEFORE=true" | tee -a /etc/apt-fast.conf \
15
- && echo "MAXNUM=20" | tee -a /etc/apt-fast.conf \
16
  && echo "USE_PIGZ=1" | tee -a /etc/apt-fast.conf \
17
  && echo "APTFAST_PARA_OPTS=(--max-connection-per-server=12 --split=5)" | tee -a /etc/apt-fast.conf
18
 
@@ -28,19 +28,11 @@ RUN apt-fast update && apt-fast install -y \
28
  net-tools iputils-ping \
29
  rsync git-extras pigz \
30
  fzf silversearcher-ag ripgrep mingw-w64 \
 
31
  && rm -rf /var/lib/apt/lists/*
32
 
33
  RUN git lfs install
34
-
35
- # -----------------------------
36
- # Python 3.12
37
- # -----------------------------
38
- RUN add-apt-repository ppa:deadsnakes/ppa -y && apt-fast update
39
- RUN apt-fast install -y python3.12 python3.12-venv python3.12-dev \
40
- && curl -sS https://bootstrap.pypa.io/get-pip.py | python3.12
41
- RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 1 \
42
- && update-alternatives --install /usr/bin/pip pip /usr/local/bin/pip3.12 1
43
- RUN update-alternatives --set python3 /usr/bin/python3.12
44
 
45
  # -----------------------------
46
  # Rust (global)
 
1
+ FROM ubuntu:24.04
2
 
3
  ENV DEBIAN_FRONTEND=noninteractive
4
 
 
12
  && DEBIAN_FRONTEND=noninteractive \
13
  apt-get -y install apt-fast \
14
  && echo "DOWNLOADBEFORE=true" | tee -a /etc/apt-fast.conf \
15
+ && echo "MAXNUM=50" | tee -a /etc/apt-fast.conf \
16
  && echo "USE_PIGZ=1" | tee -a /etc/apt-fast.conf \
17
  && echo "APTFAST_PARA_OPTS=(--max-connection-per-server=12 --split=5)" | tee -a /etc/apt-fast.conf
18
 
 
28
  net-tools iputils-ping \
29
  rsync git-extras pigz \
30
  fzf silversearcher-ag ripgrep mingw-w64 \
31
+ python3.12 python3.12-dev python3.12-pip \
32
  && rm -rf /var/lib/apt/lists/*
33
 
34
  RUN git lfs install
35
+ RUN pip config set global.break-system-packages true
 
 
 
 
 
 
 
 
 
36
 
37
  # -----------------------------
38
  # Rust (global)