Skip to content

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

@mickroll

Description

@mickroll

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions