Skip to content

ImageFromDockerfile not working when withFileFromFile and withDockerfile are used at the same time #4693

Description

@MarconZet

Issue

This works as expected

new ImageFromDockerfile(imageName, true)
    .withFileFromFile("Dockerfile", new File("dev/keycloak/Dockerfile"))
    .withFileFromFile("dev/keycloak/sbt-project", new File("dev/keycloak/sbt-project"))

while this fails to create image and deadlocks on PipedInputStream#awaitSpace()

new ImageFromDockerfile(imageName, true)
    .withDockerfile(new File("dev/keycloak/Dockerfile").toPath)
    .withFileFromFile("dev/keycloak/sbt-project", new File("dev/keycloak/sbt-project"))

Expected result

At least some kind of warning or exception

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions