mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 18:41:32 +00:00
Freeze Python dependencies via pip install -r req....txt
This commit is contained in:
parent
fb597adf46
commit
ae4c27c0f5
@ -21,6 +21,7 @@ RUN curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - &&\
|
|||||||
USER ${AVATAO_USER}
|
USER ${AVATAO_USER}
|
||||||
WORKDIR /home/${AVATAO_USER}
|
WORKDIR /home/${AVATAO_USER}
|
||||||
COPY .pyenvrc .
|
COPY .pyenvrc .
|
||||||
|
COPY requirements.txt /tmp
|
||||||
# no GitHub releases are available, so current tip of head is hardcoded to avoid surprises
|
# no GitHub releases are available, so current tip of head is hardcoded to avoid surprises
|
||||||
ARG PYTHON_VERSION="3.6.4"
|
ARG PYTHON_VERSION="3.6.4"
|
||||||
ARG PYENV_INSTALLER_URL="https://raw.githubusercontent.com/pyenv/pyenv-installer/78cfd4d/bin/pyenv-installer"
|
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 &&\
|
. $HOME/.pyenvrc &&\
|
||||||
pyenv install ${PYTHON_VERSION} &&\
|
pyenv install ${PYTHON_VERSION} &&\
|
||||||
pyenv global ${PYTHON_VERSION} &&\
|
pyenv global ${PYTHON_VERSION} &&\
|
||||||
pip install tornado pyzmq transitions terminado
|
pip install -r /tmp/requirements.txt
|
||||||
|
|
||||||
USER root
|
USER root
|
||||||
WORKDIR /data/
|
WORKDIR /data/
|
||||||
|
4
requirements.txt
Normal file
4
requirements.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
tornado==4.5.3
|
||||||
|
pyzmq==16.0.4
|
||||||
|
transitions==0.6.4
|
||||||
|
terminado==0.8.1
|
Loading…
Reference in New Issue
Block a user