Skip to content

Commit 8f2e9c5

Browse files
committed
Update ENV format to remove Docker warnings
The old style results in Docker build issuing warnings that the old format should not be used any longer.
1 parent 1c7e290 commit 8f2e9c5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Dockerfile-linux.template

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ FROM buildpack-deps:{{ env.variant }}
2020
{{ ) end -}}
2121

2222
# ensure local python is preferred over distribution python
23-
ENV PATH /usr/local/bin:$PATH
23+
ENV PATH=/usr/local/bin:$PATH
2424

2525
{{ if [ "3.9", "3.10", "3.11", "3.12" ] | index(rcVersion) then ( -}}
2626
{{ # only set LANG on versions less than 3.13 -}}
2727
# cannot remove LANG even though https://bugs.python.org/issue19846 is fixed
2828
# last attempted removal of LANG broke many users:
2929
# https://github.com/docker-library/python/pull/570
30-
ENV LANG C.UTF-8
30+
ENV LANG=C.UTF-8
3131

3232
{{ ) else "" end -}}
3333
# runtime dependencies
@@ -54,7 +54,7 @@ RUN set -eux; \
5454
rm -rf /var/lib/apt/lists/*
5555
{{ ) end -}}
5656

57-
ENV GPG_KEY {{
57+
ENV GPG_KEY={{
5858
{
5959
# gpg: key B26995E310250568: public key "\xc5\x81ukasz Langa (GPG langa.pl) <[email protected]>" imported
6060
"3.9": "E3FF2839C048B25C084DEBE9B26995E310250568",
@@ -77,9 +77,9 @@ ENV GPG_KEY {{
7777
# https://peps.python.org/pep-0719/#release-manager-and-crew
7878
}[rcVersion]
7979
}}
80-
ENV PYTHON_VERSION {{ .version }}
80+
ENV PYTHON_VERSION={{ .version }}
8181
{{ if .checksums.source.sha256 then ( -}}
82-
ENV PYTHON_SHA256 {{ .checksums.source.sha256 }}
82+
ENV PYTHON_SHA256={{ .checksums.source.sha256 }}
8383
{{ ) else "" end -}}
8484

8585
RUN set -eux; \

0 commit comments

Comments
 (0)