mirror of
https://github.com/qurator-spk/ocrd-galley.git
synced 2025-06-09 14:49:53 +02:00
🚧 Install pyenv
This commit is contained in:
parent
55ebfb807a
commit
e608fdae1d
2 changed files with 17 additions and 4 deletions
|
@ -20,6 +20,17 @@ RUN echo "APT::Acquire::Retries \"3\";" > /etc/apt/apt.conf.d/80-retries && \
|
|||
xmlstarlet \
|
||||
# OCR-D uses ImageMagick for pixel density estimation
|
||||
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 && \
|
||||
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: does just saying "3.7" work as intended?
|
||||
ENV HOME=/root
|
||||
ENV PYENV_ROOT=$HOME/.pyenv
|
||||
ENV PYENV_ROOT=/usr/local/share/pyenv
|
||||
ENV PATH=$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH
|
||||
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 global 3.7 && \
|
||||
pyenv rehash
|
||||
pyenv rehash && \
|
||||
pip install -U pip && \
|
||||
pip install setuptools
|
||||
|
||||
# Install pip installable-stuff
|
||||
RUN ${PIP_INSTALL} \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue