Skip to content

Better support multi-stage builds #417

@wscherphof

Description

@wscherphof

E.g. in the .NET component (https://github.com/merkatorgis/docker4gis-dotnet).
Currently, the template Dockerfile start with FROM xxx/dotnet/sdk:xxx as builder, followed by the instructions needed to copy in and compile the sources, then FROM docker4gis/dotnet:xxx, followed by COPY --from=builder xxx xxx.
Would be nice, if even possible (but I doubt it...), to have the build instructions as ONBUILD in the builder image, and have the template Dockerfile just do:

FROM xxx/dotnet/sdk:xxx as builder
FROM docker4gis/dotnet:xxx
COPY --from=builder xxx xxx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions