pandoc / dockerfiles

Dockerfiles for various pandoc images
GNU General Public License v2.0
364 stars 98 forks source link

ARG is no longer set after FROM #224

Closed me-kell closed 4 months ago

me-kell commented 5 months ago

The following comment regarding the scope of an ARG instruction in a Dockerfile:

https://github.com/pandoc/dockerfiles/blob/61b1fbf7355923f817b447301543d40316eea9c2/ubuntu/Dockerfile#L6-L8

Can be explained/answered with this part of the documentation in Dockerfile reference - Scope:

An ARG instruction goes out of scope at the end of the build stage where it was defined. To use an argument in multiple stages, each stage must include the ARG instruction.

tarleb commented 4 months ago

Thanks, that's informative. Would you like to create a PR to update those docs?