Freeze Python dependencies via pip install -r req....txt

This commit is contained in:
Kristóf Tóth 2018-01-24 18:18:57 +01:00
parent fb597adf46
commit ae4c27c0f5
2 changed files with 6 additions and 1 deletions

View File

@ -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
View File

@ -0,0 +1,4 @@
tornado==4.5.3
pyzmq==16.0.4
transitions==0.6.4
terminado==0.8.1