From aabc04243127ad3a126be46c71a09f77dc3efc4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A1lint=20Bokros?= Date: Fri, 12 Jan 2018 14:10:57 +0100 Subject: [PATCH] Use ARG instead of ENV for build-time variables --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index e327641..212517c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -48,10 +48,10 @@ USER ${AVATAO_USER} WORKDIR /home/${AVATAO_USER} 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 -ENV PYENV_INSTALLER_URL="https://raw.githubusercontent.com/pyenv/pyenv-installer/78cfd4d/bin/pyenv-installer" -ENV PYENV_INSTALLER_HASH=9509348b828f0564358fff456f7f693dd9ace351dc3f240854d7685ad8a8e1dd +ARG PYENV_INSTALLER_URL="https://raw.githubusercontent.com/pyenv/pyenv-installer/78cfd4d/bin/pyenv-installer" +ARG PYENV_INSTALLER_HASH=9509348b828f0564358fff456f7f693dd9ace351dc3f240854d7685ad8a8e1dd RUN curl -fSL -o pyenv-installer ${PYENV_INSTALLER_URL} && \ echo "${PYENV_INSTALLER_HASH} *pyenv-installer" | sha256sum -c - && \ bash pyenv-installer && \