Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +15 -3
Dockerfile
CHANGED
|
@@ -17,6 +17,7 @@ RUN apt-get update && apt-get install -y software-properties-common \
|
|
| 17 |
&& echo "APTFAST_PARA_OPTS=(--max-connection-per-server=12 --split=5)" | tee -a /etc/apt-fast.conf
|
| 18 |
|
| 19 |
|
|
|
|
| 20 |
RUN apt-fast update && apt-fast install -y \
|
| 21 |
curl wget git git-lfs unzip sudo nano bash apt-fast \
|
| 22 |
software-properties-common ca-certificates gnupg \
|
|
@@ -31,12 +32,23 @@ RUN apt-fast update && apt-fast install -y \
|
|
| 31 |
python3.12 python3.12-dev python3-pip \
|
| 32 |
&& rm -rf /var/lib/apt/lists/*
|
| 33 |
|
|
|
|
| 34 |
RUN git lfs install
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
RUN
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
RUN pip config set global.break-system-packages true
|
| 39 |
|
|
|
|
|
|
|
|
|
|
| 40 |
# -----------------------------
|
| 41 |
# Rust (global)
|
| 42 |
# -----------------------------
|
|
|
|
| 17 |
&& echo "APTFAST_PARA_OPTS=(--max-connection-per-server=12 --split=5)" | tee -a /etc/apt-fast.conf
|
| 18 |
|
| 19 |
|
| 20 |
+
# Install base tools and Python (with pip)
|
| 21 |
RUN apt-fast update && apt-fast install -y \
|
| 22 |
curl wget git git-lfs unzip sudo nano bash apt-fast \
|
| 23 |
software-properties-common ca-certificates gnupg \
|
|
|
|
| 32 |
python3.12 python3.12-dev python3-pip \
|
| 33 |
&& rm -rf /var/lib/apt/lists/*
|
| 34 |
|
| 35 |
+
# Enable Git LFS
|
| 36 |
RUN git lfs install
|
| 37 |
+
|
| 38 |
+
# Remove Ubuntu’s setuptools + wheel (optional, but allowed)
|
| 39 |
+
RUN apt-fast remove -y python3-wheel python3-setuptools && rm -rf /var/lib/apt/lists/*
|
| 40 |
+
|
| 41 |
+
# Reinstall pip, setuptools, wheel using the official bootstrap
|
| 42 |
+
RUN curl -sS https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py \
|
| 43 |
+
&& python3.12 /tmp/get-pip.py \
|
| 44 |
+
&& rm /tmp/get-pip.py
|
| 45 |
+
|
| 46 |
+
# Allow pip upgrades even on system Python
|
| 47 |
RUN pip config set global.break-system-packages true
|
| 48 |
|
| 49 |
+
# Upgrade pip tools safely
|
| 50 |
+
RUN python3.12 -m pip install --upgrade pip setuptools wheel
|
| 51 |
+
|
| 52 |
# -----------------------------
|
| 53 |
# Rust (global)
|
| 54 |
# -----------------------------
|