Skip to content

Commit f121a0d

Browse files
authored
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.
1 parent 57e4b3f commit f121a0d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ FROM alpine:${ALPINE_VERSION}
55
RUN apk add --no-cache git python3 python3-dev py3-pip py3-setuptools build-base
66

77
# build wheels in a build stage
8-
ENV VIRTUAL_ENV /opt/venv
9-
ENV PATH ${VIRTUAL_ENV}/bin:${PATH}
8+
ENV VIRTUAL_ENV=/opt/venv
9+
ENV PATH=${VIRTUAL_ENV}/bin:${PATH}
1010

1111
RUN python3 -m venv ${VIRTUAL_ENV}
1212

@@ -23,8 +23,8 @@ FROM alpine:${ALPINE_VERSION}
2323
# install python, git, bash, mercurial
2424
RUN apk add --no-cache git git-lfs python3 py3-pip py3-setuptools bash docker mercurial
2525

26-
ENV VIRTUAL_ENV /opt/venv
27-
ENV PATH ${VIRTUAL_ENV}/bin:${PATH}
26+
ENV VIRTUAL_ENV=/opt/venv
27+
ENV PATH=${VIRTUAL_ENV}/bin:${PATH}
2828

2929
RUN python3 -m venv ${VIRTUAL_ENV}
3030

0 commit comments

Comments
 (0)