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

ARG support in INCLUDE and "FROM with relative paths" #11

Open
mickroll opened this issue Jan 30, 2024 · 1 comment
Open

ARG support in INCLUDE and "FROM with relative paths" #11

mickroll opened this issue Jan 30, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@mickroll
Copy link

Currently, the INCLUDE and FROM do not work with supplied build-args, eg.:

ARG BASE_DOCKERFILE
INCLUDE ./path/${BASE_DOCKERFILE}

or

ARG BASE_DOCKERFILE
FROM ./path/${BASE_DOCKERFILE}

This is in contrast to vanilla dockerfile where this example works:

ARG JDK_VERSION
FROM azul/zulu-openjdk-alpine:${JDK_VERSION}

$ docker build --build-arg JDK_VERSION=17.0.9 build -f Dockerfile.build .

It would be really nice to have ARG support for INCLUDE and FROM with Relative Paths.

@devthejo
Copy link
Contributor

I think it's a good idea,
but not too much time for this now,
PR are welcome to implement this feature
I will also add this to my long term TODO list

@devthejo devthejo added the enhancement New feature or request label Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants