⚙️ Install pip via get-pip.py

pull/27/head
Gerber, Mike 4 years ago
parent 92391747a7
commit 9680dd8299

@ -8,7 +8,9 @@ RUN echo "APT::Acquire::Retries \"3\";" > /etc/apt/apt.conf.d/80-retries && \
apt-get update && \ apt-get update && \
apt-get install -y \ apt-get install -y \
curl xz-utils \ curl xz-utils \
python3-pip \ build-essential python3-dev \
# For get-pip.py:
python3-distutils \
# For add-apt-repository: # For add-apt-repository:
software-properties-common \ software-properties-common \
# XML utils # XML utils
@ -23,11 +25,17 @@ RUN echo "APT::Acquire::Retries \"3\";" > /etc/apt/apt.conf.d/80-retries && \
COPY ocrd_logging.py /etc/ COPY ocrd_logging.py /etc/
# Build pip installable stuff # Install pip (and setuptools)
RUN pip3 install --no-cache-dir --upgrade pip && \ # We use get-pip.py here to avoid
pip3 install --no-cache-dir \ # a. having to upgrade from Ubuntu's pip
# Resolve conflicts early: # b. the dreaded "old script wrapper" error message
'setuptools >= 41.0.0' \ RUN curl -sSL https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
python3 get-pip.py && \
rm -f get-pip.py
# Install pip installable-stuff
RUN pip3 install --no-cache-dir \
'ocrd >= 2.13.1' 'ocrd >= 2.13.1'

@ -14,8 +14,7 @@ RUN curl -sSL --retry 3 -O https://qurator-data.de/~mike.gerber/olena_2.1-0+ocrd
apt-get update && \ apt-get update && \
apt-get -f install -y && \ apt-get -f install -y && \
apt-get clean && rm -rf /var/lib/apt/lists/* apt-get clean && rm -rf /var/lib/apt/lists/*
RUN pip3 install --no-cache-dir --upgrade pip && \ RUN curl -sSL --retry 3 -o ocrd_olena.tar.gz https://github.com/OCR-D/ocrd_olena/archive/v${OCRD_OLENA_VERSION}.tar.gz && \
curl -sSL --retry 3 -o ocrd_olena.tar.gz https://github.com/OCR-D/ocrd_olena/archive/v${OCRD_OLENA_VERSION}.tar.gz && \
mkdir ocrd_olena && \ mkdir ocrd_olena && \
tar xvz -C ocrd_olena --strip-components=1 -f ocrd_olena.tar.gz && \ tar xvz -C ocrd_olena --strip-components=1 -f ocrd_olena.tar.gz && \
cd ocrd_olena && \ cd ocrd_olena && \

Loading…
Cancel
Save