mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-23 00:31:31 +00:00
Use ARG instead of ENV for build-time variables
This commit is contained in:
parent
a30c0c3fff
commit
aabc042431
@ -48,10 +48,10 @@ USER ${AVATAO_USER}
|
|||||||
|
|
||||||
WORKDIR /home/${AVATAO_USER}
|
WORKDIR /home/${AVATAO_USER}
|
||||||
COPY .pyenvrc .
|
COPY .pyenvrc .
|
||||||
ENV PYTHON_VERSION="3.6.4"
|
ARG PYTHON_VERSION="3.6.4"
|
||||||
# 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
|
||||||
ENV 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"
|
||||||
ENV PYENV_INSTALLER_HASH=9509348b828f0564358fff456f7f693dd9ace351dc3f240854d7685ad8a8e1dd
|
ARG PYENV_INSTALLER_HASH=9509348b828f0564358fff456f7f693dd9ace351dc3f240854d7685ad8a8e1dd
|
||||||
RUN curl -fSL -o pyenv-installer ${PYENV_INSTALLER_URL} && \
|
RUN curl -fSL -o pyenv-installer ${PYENV_INSTALLER_URL} && \
|
||||||
echo "${PYENV_INSTALLER_HASH} *pyenv-installer" | sha256sum -c - && \
|
echo "${PYENV_INSTALLER_HASH} *pyenv-installer" | sha256sum -c - && \
|
||||||
bash pyenv-installer && \
|
bash pyenv-installer && \
|
||||||
|
Loading…
Reference in New Issue
Block a user