Skip to content
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

dockerfile: Add integration test for ARG with empty value and default #4914

Open
tonistiigi opened this issue May 10, 2024 · 0 comments
Open

Comments

@tonistiigi
Copy link
Member

Follow-up for #4897 (comment)

Seems that we are missing a test that would check that ARG without default value would not be defined in the environment variables of RUN steps at all (instead of showing up with empty value).

In a Dockerfile like

FROM alpine
ARG FOO
ARG BAR=
RUN env && stop

The env output should show only BAR= and no FOO= .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants