mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2025-06-28 09:25:12 +00:00
Freeze Python dependencies via pip install -r req....txt
This commit is contained in:
@ -21,6 +21,7 @@ RUN curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - &&\
|
||||
USER ${AVATAO_USER}
|
||||
WORKDIR /home/${AVATAO_USER}
|
||||
COPY .pyenvrc .
|
||||
COPY requirements.txt /tmp
|
||||
# no GitHub releases are available, so current tip of head is hardcoded to avoid surprises
|
||||
ARG PYTHON_VERSION="3.6.4"
|
||||
ARG PYENV_INSTALLER_URL="https://raw.githubusercontent.com/pyenv/pyenv-installer/78cfd4d/bin/pyenv-installer"
|
||||
@ -33,7 +34,7 @@ RUN curl -fSL -o pyenv-installer ${PYENV_INSTALLER_URL} &&\
|
||||
. $HOME/.pyenvrc &&\
|
||||
pyenv install ${PYTHON_VERSION} &&\
|
||||
pyenv global ${PYTHON_VERSION} &&\
|
||||
pip install tornado pyzmq transitions terminado
|
||||
pip install -r /tmp/requirements.txt
|
||||
|
||||
USER root
|
||||
WORKDIR /data/
|
||||
|
Reference in New Issue
Block a user