From f121a0d481d937c09b48b5965abe00387f5cf2ed Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Sun, 24 Mar 2024 22:22:47 +0100 Subject: [PATCH] Use modern ENV syntax in Dockerfile The use of `ENV key value` is an old alternative syntax still around for backward compatibility, but may be removed according to https://docs.docker.com/reference/dockerfile/#env. --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 44a38a3e..93a98123 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,8 +5,8 @@ FROM alpine:${ALPINE_VERSION} RUN apk add --no-cache git python3 python3-dev py3-pip py3-setuptools build-base # build wheels in a build stage -ENV VIRTUAL_ENV /opt/venv -ENV PATH ${VIRTUAL_ENV}/bin:${PATH} +ENV VIRTUAL_ENV=/opt/venv +ENV PATH=${VIRTUAL_ENV}/bin:${PATH} RUN python3 -m venv ${VIRTUAL_ENV} @@ -23,8 +23,8 @@ FROM alpine:${ALPINE_VERSION} # install python, git, bash, mercurial RUN apk add --no-cache git git-lfs python3 py3-pip py3-setuptools bash docker mercurial -ENV VIRTUAL_ENV /opt/venv -ENV PATH ${VIRTUAL_ENV}/bin:${PATH} +ENV VIRTUAL_ENV=/opt/venv +ENV PATH=${VIRTUAL_ENV}/bin:${PATH} RUN python3 -m venv ${VIRTUAL_ENV}