FROM osgeo/gdal:ubuntu-small-3.3.2
RUN apt-get install -y python3-distutils --no-install-recommends && \
curl https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py && \
python /tmp/get-pip.py && \
rm -f /tmp/get-pip.py
对比使用apt安装可少一些依赖
FROM osgeo/gdal:ubuntu-small-3.3.2
RUN apt-get install -y python3-distutils --no-install-recommends && \
curl https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py && \
python /tmp/get-pip.py && \
rm -f /tmp/get-pip.py
对比使用apt安装可少一些依赖