|
|
@ -20,6 +20,17 @@ RUN echo "APT::Acquire::Retries \"3\";" > /etc/apt/apt.conf.d/80-retries && \
|
|
|
|
xmlstarlet \
|
|
|
|
xmlstarlet \
|
|
|
|
# OCR-D uses ImageMagick for pixel density estimation
|
|
|
|
# OCR-D uses ImageMagick for pixel density estimation
|
|
|
|
imagemagick \
|
|
|
|
imagemagick \
|
|
|
|
|
|
|
|
# pyenv builds
|
|
|
|
|
|
|
|
# TODO: builder container?
|
|
|
|
|
|
|
|
libz-dev \
|
|
|
|
|
|
|
|
libssl-dev \
|
|
|
|
|
|
|
|
libbz2-dev \
|
|
|
|
|
|
|
|
liblzma-dev \
|
|
|
|
|
|
|
|
libncurses-dev \
|
|
|
|
|
|
|
|
libffi-dev \
|
|
|
|
|
|
|
|
libreadline-dev \
|
|
|
|
|
|
|
|
libsqlite3-dev \
|
|
|
|
|
|
|
|
libmagic-dev \
|
|
|
|
&& \
|
|
|
|
&& \
|
|
|
|
apt-get clean && \
|
|
|
|
apt-get clean && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
@ -33,13 +44,15 @@ RUN echo "setOverrideLogLevel(os.getenv('LOG_LEVEL', 'INFO'))" >/etc/ocrd_loggin
|
|
|
|
# TODO: do not run as root
|
|
|
|
# TODO: do not run as root
|
|
|
|
# TODO: does just saying "3.7" work as intended?
|
|
|
|
# TODO: does just saying "3.7" work as intended?
|
|
|
|
ENV HOME=/root
|
|
|
|
ENV HOME=/root
|
|
|
|
ENV PYENV_ROOT=$HOME/.pyenv
|
|
|
|
ENV PYENV_ROOT=/usr/local/share/pyenv
|
|
|
|
ENV PATH=$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH
|
|
|
|
ENV PATH=$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH
|
|
|
|
RUN \
|
|
|
|
RUN \
|
|
|
|
git clone --depth=1 https://github.com/yyuu/pyenv.git $HOME/.pyenv && \
|
|
|
|
git clone --depth=1 https://github.com/yyuu/pyenv.git $PYENV_ROOT && \
|
|
|
|
pyenv install 3.7 && \
|
|
|
|
pyenv install 3.7 && \
|
|
|
|
pyenv global 3.7 && \
|
|
|
|
pyenv global 3.7 && \
|
|
|
|
pyenv rehash
|
|
|
|
pyenv rehash && \
|
|
|
|
|
|
|
|
pip install -U pip && \
|
|
|
|
|
|
|
|
pip install setuptools
|
|
|
|
|
|
|
|
|
|
|
|
# Install pip installable-stuff
|
|
|
|
# Install pip installable-stuff
|
|
|
|
RUN ${PIP_INSTALL} \
|
|
|
|
RUN ${PIP_INSTALL} \
|
|
|
|