mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-12-23 02:01:56 +00:00
Make pyenv install MitM-resilient
This commit is contained in:
parent
b1d5a71c49
commit
bcdceb7d9d
15
Dockerfile
15
Dockerfile
@ -27,11 +27,18 @@ RUN apt-get update && \
|
||||
|
||||
USER ${AVATAO_USER}
|
||||
|
||||
COPY .pyenvrc /home/${AVATAO_USER}/.pyenvrc
|
||||
WORKDIR /home/${AVATAO_USER}
|
||||
COPY .pyenvrc .
|
||||
ENV PYTHON_VERSION="3.6.4"
|
||||
RUN curl -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash && \
|
||||
echo "source $HOME/.pyenvrc" >> "$HOME/.bashrc" && \
|
||||
. "$HOME/.pyenvrc" && \
|
||||
# no GitHub releases are available, so current tip of head is hardcoded to avoid surprises
|
||||
ENV PYENV_INSTALLER_URL="https://raw.githubusercontent.com/pyenv/pyenv-installer/78cfd4d/bin/pyenv-installer"
|
||||
ENV PYENV_INSTALLER_HASH=9509348b828f0564358fff456f7f693dd9ace351dc3f240854d7685ad8a8e1dd
|
||||
RUN curl -fSL -o pyenv-installer ${PYENV_INSTALLER_URL} && \
|
||||
echo "${PYENV_INSTALLER_HASH} *pyenv-installer" | sha256sum -c - && \
|
||||
bash pyenv-installer && \
|
||||
rm pyenv-installer && \
|
||||
echo "source $HOME/.pyenvrc" >> .bashrc && \
|
||||
. $HOME/.pyenvrc && \
|
||||
pyenv install ${PYTHON_VERSION} && \
|
||||
pyenv global ${PYTHON_VERSION} && \
|
||||
pip install tornado pyzmq transitions
|
||||
|
Loading…
Reference in New Issue
Block a user