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

Support multiple arguments in ARG #92

Closed
rcjsuen opened this issue Apr 10, 2021 · 0 comments
Closed

Support multiple arguments in ARG #92

rcjsuen opened this issue Apr 10, 2021 · 0 comments
Assignees

Comments

@rcjsuen
Copy link
Owner

rcjsuen commented Apr 10, 2021

In Docker Engine 20.10, ARG instructions can now accept multiple arguments.

FROM scratch
ARG a=b b
$ docker build .
Sending build context to Docker daemon     47MB
Step 1/2 : FROM scratch
 ---> 
Step 2/2 : ARG a=b b
 ---> Running in e60e9e9855ec
Removing intermediate container e60e9e9855ec
 ---> c6a7360077c7
Successfully built c6a7360077c7

This code should now print out 0 instead of 1.

const dockerfileUtils = require("dockerfile-utils");
const results = dockerfileUtils.validate("FROM scratch\nARG a=b b");
console.log(results.length);
@rcjsuen rcjsuen self-assigned this Apr 10, 2021
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

1 participant