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

Port flagged as an error if an build argument does not have a default value #199

Closed
rcjsuen opened this issue Jan 16, 2018 · 1 comment
Closed
Assignees
Labels

Comments

@rcjsuen
Copy link
Owner

rcjsuen commented Jan 16, 2018

FROM scratch
ARG ZOO_PORT
EXPOSE $ZOO_PORT

Given the above Dockerfile, an error will be reported because we can't resolve the ZOO_PORT variable to a value that satisfies our validation of an EXPOSE instruction. However, given that it is a build argument that the user will pass to Docker, we should just ignore it and not bother trying to validate it.

@rcjsuen
Copy link
Owner Author

rcjsuen commented Jan 17, 2018

Fixed in cc4d893 by adopting version 0.0.4 of dockerfile-utils.

Please refer to rcjsuen/dockerfile-utils#3 for more details.

@rcjsuen rcjsuen closed this as completed Jan 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant