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