Skip to content

Replace obsolete ENV VAR VALUE with ENV VAR=VALUE #2254

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions 20/alpine3.21/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM alpine:3.21

ENV NODE_VERSION 20.19.3
ENV NODE_VERSION=20.19.3

RUN addgroup -g 1000 node \
&& adduser -u 1000 -G node -s /bin/sh -D node \
Expand Down Expand Up @@ -78,7 +78,7 @@ RUN addgroup -g 1000 node \
&& npm --version \
&& rm -rf /tmp/*

ENV YARN_VERSION 1.22.22
ENV YARN_VERSION=1.22.22

RUN apk add --no-cache --virtual .build-deps-yarn curl gnupg tar \
# use pre-existing gpg directory, see https://github.com/nodejs/docker-node/pull/1895#issuecomment-1550389150
Expand Down
4 changes: 2 additions & 2 deletions 20/alpine3.22/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM alpine:3.22

ENV NODE_VERSION 20.19.3
ENV NODE_VERSION=20.19.3

RUN addgroup -g 1000 node \
&& adduser -u 1000 -G node -s /bin/sh -D node \
Expand Down Expand Up @@ -78,7 +78,7 @@ RUN addgroup -g 1000 node \
&& npm --version \
&& rm -rf /tmp/*

ENV YARN_VERSION 1.22.22
ENV YARN_VERSION=1.22.22

RUN apk add --no-cache --virtual .build-deps-yarn curl gnupg tar \
# use pre-existing gpg directory, see https://github.com/nodejs/docker-node/pull/1895#issuecomment-1550389150
Expand Down
4 changes: 2 additions & 2 deletions 20/bookworm-slim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM debian:bookworm-slim
RUN groupadd --gid 1000 node \
&& useradd --uid 1000 --gid node --shell /bin/bash --create-home node

ENV NODE_VERSION 20.19.3
ENV NODE_VERSION=20.19.3

RUN ARCH= OPENSSL_ARCH= && dpkgArch="$(dpkg --print-architecture)" \
&& case "${dpkgArch##*-}" in \
Expand Down Expand Up @@ -60,7 +60,7 @@ RUN ARCH= OPENSSL_ARCH= && dpkgArch="$(dpkg --print-architecture)" \
&& npm --version \
&& rm -rf /tmp/*

ENV YARN_VERSION 1.22.22
ENV YARN_VERSION=1.22.22

RUN set -ex \
&& savedAptMark="$(apt-mark showmanual)" \
Expand Down
4 changes: 2 additions & 2 deletions 20/bookworm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM buildpack-deps:bookworm
RUN groupadd --gid 1000 node \
&& useradd --uid 1000 --gid node --shell /bin/bash --create-home node

ENV NODE_VERSION 20.19.3
ENV NODE_VERSION=20.19.3

RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" \
&& case "${dpkgArch##*-}" in \
Expand Down Expand Up @@ -46,7 +46,7 @@ RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" \
&& npm --version \
&& rm -rf /tmp/*

ENV YARN_VERSION 1.22.22
ENV YARN_VERSION=1.22.22

RUN set -ex \
# use pre-existing gpg directory, see https://github.com/nodejs/docker-node/pull/1895#issuecomment-1550389150
Expand Down
4 changes: 2 additions & 2 deletions 20/bullseye-slim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM debian:bullseye-slim
RUN groupadd --gid 1000 node \
&& useradd --uid 1000 --gid node --shell /bin/bash --create-home node

ENV NODE_VERSION 20.19.3
ENV NODE_VERSION=20.19.3

RUN ARCH= OPENSSL_ARCH= && dpkgArch="$(dpkg --print-architecture)" \
&& case "${dpkgArch##*-}" in \
Expand Down Expand Up @@ -60,7 +60,7 @@ RUN ARCH= OPENSSL_ARCH= && dpkgArch="$(dpkg --print-architecture)" \
&& npm --version \
&& rm -rf /tmp/*

ENV YARN_VERSION 1.22.22
ENV YARN_VERSION=1.22.22

RUN set -ex \
&& savedAptMark="$(apt-mark showmanual)" \
Expand Down
4 changes: 2 additions & 2 deletions 20/bullseye/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM buildpack-deps:bullseye
RUN groupadd --gid 1000 node \
&& useradd --uid 1000 --gid node --shell /bin/bash --create-home node

ENV NODE_VERSION 20.19.3
ENV NODE_VERSION=20.19.3

RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" \
&& case "${dpkgArch##*-}" in \
Expand Down Expand Up @@ -46,7 +46,7 @@ RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" \
&& npm --version \
&& rm -rf /tmp/*

ENV YARN_VERSION 1.22.22
ENV YARN_VERSION=1.22.22

RUN set -ex \
# use pre-existing gpg directory, see https://github.com/nodejs/docker-node/pull/1895#issuecomment-1550389150
Expand Down
4 changes: 2 additions & 2 deletions 22/alpine3.21/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM alpine:3.21

ENV NODE_VERSION 22.17.0
ENV NODE_VERSION=22.17.0

RUN addgroup -g 1000 node \
&& adduser -u 1000 -G node -s /bin/sh -D node \
Expand Down Expand Up @@ -78,7 +78,7 @@ RUN addgroup -g 1000 node \
&& npm --version \
&& rm -rf /tmp/*

ENV YARN_VERSION 1.22.22
ENV YARN_VERSION=1.22.22

RUN apk add --no-cache --virtual .build-deps-yarn curl gnupg tar \
# use pre-existing gpg directory, see https://github.com/nodejs/docker-node/pull/1895#issuecomment-1550389150
Expand Down
4 changes: 2 additions & 2 deletions 22/alpine3.22/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM alpine:3.22

ENV NODE_VERSION 22.17.0
ENV NODE_VERSION=22.17.0

RUN addgroup -g 1000 node \
&& adduser -u 1000 -G node -s /bin/sh -D node \
Expand Down Expand Up @@ -78,7 +78,7 @@ RUN addgroup -g 1000 node \
&& npm --version \
&& rm -rf /tmp/*

ENV YARN_VERSION 1.22.22
ENV YARN_VERSION=1.22.22

RUN apk add --no-cache --virtual .build-deps-yarn curl gnupg tar \
# use pre-existing gpg directory, see https://github.com/nodejs/docker-node/pull/1895#issuecomment-1550389150
Expand Down
4 changes: 2 additions & 2 deletions 22/bookworm-slim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM debian:bookworm-slim
RUN groupadd --gid 1000 node \
&& useradd --uid 1000 --gid node --shell /bin/bash --create-home node

ENV NODE_VERSION 22.17.0
ENV NODE_VERSION=22.17.0

RUN ARCH= OPENSSL_ARCH= && dpkgArch="$(dpkg --print-architecture)" \
&& case "${dpkgArch##*-}" in \
Expand Down Expand Up @@ -60,7 +60,7 @@ RUN ARCH= OPENSSL_ARCH= && dpkgArch="$(dpkg --print-architecture)" \
&& npm --version \
&& rm -rf /tmp/*

ENV YARN_VERSION 1.22.22
ENV YARN_VERSION=1.22.22

RUN set -ex \
&& savedAptMark="$(apt-mark showmanual)" \
Expand Down
4 changes: 2 additions & 2 deletions 22/bookworm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM buildpack-deps:bookworm
RUN groupadd --gid 1000 node \
&& useradd --uid 1000 --gid node --shell /bin/bash --create-home node

ENV NODE_VERSION 22.17.0
ENV NODE_VERSION=22.17.0

RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" \
&& case "${dpkgArch##*-}" in \
Expand Down Expand Up @@ -46,7 +46,7 @@ RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" \
&& npm --version \
&& rm -rf /tmp/*

ENV YARN_VERSION 1.22.22
ENV YARN_VERSION=1.22.22

RUN set -ex \
# use pre-existing gpg directory, see https://github.com/nodejs/docker-node/pull/1895#issuecomment-1550389150
Expand Down
4 changes: 2 additions & 2 deletions 22/bullseye-slim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM debian:bullseye-slim
RUN groupadd --gid 1000 node \
&& useradd --uid 1000 --gid node --shell /bin/bash --create-home node

ENV NODE_VERSION 22.17.0
ENV NODE_VERSION=22.17.0

RUN ARCH= OPENSSL_ARCH= && dpkgArch="$(dpkg --print-architecture)" \
&& case "${dpkgArch##*-}" in \
Expand Down Expand Up @@ -60,7 +60,7 @@ RUN ARCH= OPENSSL_ARCH= && dpkgArch="$(dpkg --print-architecture)" \
&& npm --version \
&& rm -rf /tmp/*

ENV YARN_VERSION 1.22.22
ENV YARN_VERSION=1.22.22

RUN set -ex \
&& savedAptMark="$(apt-mark showmanual)" \
Expand Down
4 changes: 2 additions & 2 deletions 22/bullseye/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM buildpack-deps:bullseye
RUN groupadd --gid 1000 node \
&& useradd --uid 1000 --gid node --shell /bin/bash --create-home node

ENV NODE_VERSION 22.17.0
ENV NODE_VERSION=22.17.0

RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" \
&& case "${dpkgArch##*-}" in \
Expand Down Expand Up @@ -46,7 +46,7 @@ RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" \
&& npm --version \
&& rm -rf /tmp/*

ENV YARN_VERSION 1.22.22
ENV YARN_VERSION=1.22.22

RUN set -ex \
# use pre-existing gpg directory, see https://github.com/nodejs/docker-node/pull/1895#issuecomment-1550389150
Expand Down
4 changes: 2 additions & 2 deletions 24/alpine3.21/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM alpine:3.21

ENV NODE_VERSION 24.4.0
ENV NODE_VERSION=24.4.0

RUN addgroup -g 1000 node \
&& adduser -u 1000 -G node -s /bin/sh -D node \
Expand Down Expand Up @@ -78,7 +78,7 @@ RUN addgroup -g 1000 node \
&& npm --version \
&& rm -rf /tmp/*

ENV YARN_VERSION 1.22.22
ENV YARN_VERSION=1.22.22

RUN apk add --no-cache --virtual .build-deps-yarn curl gnupg tar \
# use pre-existing gpg directory, see https://github.com/nodejs/docker-node/pull/1895#issuecomment-1550389150
Expand Down
4 changes: 2 additions & 2 deletions 24/alpine3.22/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM alpine:3.22

ENV NODE_VERSION 24.4.0
ENV NODE_VERSION=24.4.0

RUN addgroup -g 1000 node \
&& adduser -u 1000 -G node -s /bin/sh -D node \
Expand Down Expand Up @@ -78,7 +78,7 @@ RUN addgroup -g 1000 node \
&& npm --version \
&& rm -rf /tmp/*

ENV YARN_VERSION 1.22.22
ENV YARN_VERSION=1.22.22

RUN apk add --no-cache --virtual .build-deps-yarn curl gnupg tar \
# use pre-existing gpg directory, see https://github.com/nodejs/docker-node/pull/1895#issuecomment-1550389150
Expand Down
4 changes: 2 additions & 2 deletions 24/bookworm-slim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM debian:bookworm-slim
RUN groupadd --gid 1000 node \
&& useradd --uid 1000 --gid node --shell /bin/bash --create-home node

ENV NODE_VERSION 24.4.0
ENV NODE_VERSION=24.4.0

RUN ARCH= OPENSSL_ARCH= && dpkgArch="$(dpkg --print-architecture)" \
&& case "${dpkgArch##*-}" in \
Expand Down Expand Up @@ -60,7 +60,7 @@ RUN ARCH= OPENSSL_ARCH= && dpkgArch="$(dpkg --print-architecture)" \
&& npm --version \
&& rm -rf /tmp/*

ENV YARN_VERSION 1.22.22
ENV YARN_VERSION=1.22.22

RUN set -ex \
&& savedAptMark="$(apt-mark showmanual)" \
Expand Down
4 changes: 2 additions & 2 deletions 24/bookworm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM buildpack-deps:bookworm
RUN groupadd --gid 1000 node \
&& useradd --uid 1000 --gid node --shell /bin/bash --create-home node

ENV NODE_VERSION 24.4.0
ENV NODE_VERSION=24.4.0

RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" \
&& case "${dpkgArch##*-}" in \
Expand Down Expand Up @@ -46,7 +46,7 @@ RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" \
&& npm --version \
&& rm -rf /tmp/*

ENV YARN_VERSION 1.22.22
ENV YARN_VERSION=1.22.22

RUN set -ex \
# use pre-existing gpg directory, see https://github.com/nodejs/docker-node/pull/1895#issuecomment-1550389150
Expand Down
4 changes: 2 additions & 2 deletions 24/bullseye-slim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM debian:bullseye-slim
RUN groupadd --gid 1000 node \
&& useradd --uid 1000 --gid node --shell /bin/bash --create-home node

ENV NODE_VERSION 24.4.0
ENV NODE_VERSION=24.4.0

RUN ARCH= OPENSSL_ARCH= && dpkgArch="$(dpkg --print-architecture)" \
&& case "${dpkgArch##*-}" in \
Expand Down Expand Up @@ -60,7 +60,7 @@ RUN ARCH= OPENSSL_ARCH= && dpkgArch="$(dpkg --print-architecture)" \
&& npm --version \
&& rm -rf /tmp/*

ENV YARN_VERSION 1.22.22
ENV YARN_VERSION=1.22.22

RUN set -ex \
&& savedAptMark="$(apt-mark showmanual)" \
Expand Down
4 changes: 2 additions & 2 deletions 24/bullseye/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM buildpack-deps:bullseye
RUN groupadd --gid 1000 node \
&& useradd --uid 1000 --gid node --shell /bin/bash --create-home node

ENV NODE_VERSION 24.4.0
ENV NODE_VERSION=24.4.0

RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" \
&& case "${dpkgArch##*-}" in \
Expand Down Expand Up @@ -46,7 +46,7 @@ RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" \
&& npm --version \
&& rm -rf /tmp/*

ENV YARN_VERSION 1.22.22
ENV YARN_VERSION=1.22.22

RUN set -ex \
# use pre-existing gpg directory, see https://github.com/nodejs/docker-node/pull/1895#issuecomment-1550389150
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile-alpine.template
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM alpine:0.0

ENV NODE_VERSION 0.0.0
ENV NODE_VERSION=0.0.0

RUN addgroup -g 1000 node \
&& adduser -u 1000 -G node -s /bin/sh -D node \
Expand Down Expand Up @@ -71,7 +71,7 @@ RUN addgroup -g 1000 node \
&& npm --version \
&& rm -rf /tmp/*

ENV YARN_VERSION 0.0.0
ENV YARN_VERSION=0.0.0

RUN apk add --no-cache --virtual .build-deps-yarn curl gnupg tar \
# use pre-existing gpg directory, see https://github.com/nodejs/docker-node/pull/1895#issuecomment-1550389150
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile-debian.template
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM buildpack-deps:name
RUN groupadd --gid 1000 node \
&& useradd --uid 1000 --gid node --shell /bin/bash --create-home node

ENV NODE_VERSION 0.0.0
ENV NODE_VERSION=0.0.0

RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" \
&& case "${dpkgArch##*-}" in \
Expand Down Expand Up @@ -39,7 +39,7 @@ RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" \
&& npm --version \
&& rm -rf /tmp/*

ENV YARN_VERSION 0.0.0
ENV YARN_VERSION=0.0.0

RUN set -ex \
# use pre-existing gpg directory, see https://github.com/nodejs/docker-node/pull/1895#issuecomment-1550389150
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile-slim.template
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM debian:name-slim
RUN groupadd --gid 1000 node \
&& useradd --uid 1000 --gid node --shell /bin/bash --create-home node

ENV NODE_VERSION 0.0.0
ENV NODE_VERSION=0.0.0

RUN ARCH= OPENSSL_ARCH= && dpkgArch="$(dpkg --print-architecture)" \
&& case "${dpkgArch##*-}" in \
Expand Down Expand Up @@ -53,7 +53,7 @@ RUN ARCH= OPENSSL_ARCH= && dpkgArch="$(dpkg --print-architecture)" \
&& npm --version \
&& rm -rf /tmp/*

ENV YARN_VERSION 0.0.0
ENV YARN_VERSION=0.0.0

RUN set -ex \
&& savedAptMark="$(apt-mark showmanual)" \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ simply use `ENV` to override `NPM_CONFIG_LOGLEVEL`.

```dockerfile
FROM node
ENV NPM_CONFIG_LOGLEVEL info
ENV NPM_CONFIG_LOGLEVEL=info
...
```

Expand Down
Loading