From ae4c27c0f5e6754619f12672f1e9f14f3ca6e235 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Wed, 24 Jan 2018 18:18:57 +0100 Subject: [PATCH] Freeze Python dependencies via pip install -r req....txt --- Dockerfile | 3 ++- requirements.txt | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 requirements.txt diff --git a/Dockerfile b/Dockerfile index 20fb9ec..eb67ffe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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/ diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..5cfef8d --- /dev/null +++ b/requirements.txt @@ -0,0 +1,4 @@ +tornado==4.5.3 +pyzmq==16.0.4 +transitions==0.6.4 +terminado==0.8.1