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 passing in additional arguments to docker build #21

Open
stuarthicks opened this issue Feb 18, 2016 · 0 comments
Open

Support passing in additional arguments to docker build #21

stuarthicks opened this issue Feb 18, 2016 · 0 comments

Comments

@stuarthicks
Copy link

I have a project using golang-builder, and I'd like to reference environment variables in my Dockerfile using the ENV directive (docs). Unfortunately, it appears that this still requires the -e/--build-arg params on the call to docker build (docs).

Currently this does not appear to be possible with golang-builder, so I'd like to discuss on this issue possible ways to introduce this feature.

To start things off, how about an environment variable passed in called something like DOCKER_BUILD_ARGS that allows any arbitrary extra args to be given to the docker build command. That seems like it would be a generic-enough implementation. What do you think?

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

No branches or pull requests

1 participant