Is this a docs issue?
Type of issue
Information is incorrect
Description
In the Dockerfile reference in the section Environment replacement it says environment variables are not supported by the RUN instruction. However, I tried it in my Dockerfile and it worked.
Also it's used in the source code of e.g. docker-library/golang:
https://github.com/docker-library/golang/blob/db757a0fae9caa7efcd64c120c432e6f83b6eb24/Dockerfile-linux.template#L193
Location
https://docs.docker.com/engine/reference/builder/#environment-replacement
Suggestion
Add RUN to the list of supported instructions for environment variables.
Is this a docs issue?
Type of issue
Information is incorrect
Description
In the Dockerfile reference in the section Environment replacement it says environment variables are not supported by the RUN instruction. However, I tried it in my Dockerfile and it worked.
Also it's used in the source code of e.g. docker-library/golang:
https://github.com/docker-library/golang/blob/db757a0fae9caa7efcd64c120c432e6f83b6eb24/Dockerfile-linux.template#L193
Location
https://docs.docker.com/engine/reference/builder/#environment-replacement
Suggestion
Add RUN to the list of supported instructions for environment variables.