Skip to content

Commit 30bcce4

Browse files
fix: Upgrade pip installation in Dockerfile after system dependencies
1 parent 88fc93a commit 30bcce4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile.pb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ RUN apt-get update && \
1515
apt-get install -y --no-install-recommends \
1616
build-essential gcc g++ python3-dev python3-rtree \
1717
gdal-bin libgdal-dev python3-gdal python3-opencv libspatialindex-dev \
18-
&& rm -rf /var/lib/apt/lists/* && \
19-
python3 -m pip install --upgrade pip
18+
&& rm -rf /var/lib/apt/lists/*
2019
# ==============================================================================
2120
# === GPU base image (CUDA + runtime-only Python & GDAL) =======================
2221
FROM nvidia/cuda:${CUDA_TAG} AS gpu-base
@@ -25,7 +24,8 @@ RUN apt-get update && \
2524
apt-get install -y --no-install-recommends \
2625
python3 python3-pip build-essential gcc g++ python3-dev python3-rtree \
2726
gdal-bin libgdal-dev python3-gdal python3-opencv libspatialindex-dev \
28-
&& rm -rf /var/lib/apt/lists/*
27+
&& rm -rf /var/lib/apt/lists/* && \
28+
python3 -m pip install --upgrade pip
2929

3030
# ==============================================================================
3131
# === Builder stage (installs everything) ======================================

0 commit comments

Comments
 (0)