Skip to content

Is it possible to use dockerfile-x to replace your FROM with another image #17

Description

@royteeuwen

I have a basic image, which I want to copy completely but I want to use another base image.

E.g. (using non existing images)

Dockerfile.oracle

FROM oracle-java:11

RUN java --version

Dockerfile.correta

FROM amazon-correta:11

INCLUDE ./Dockerfile.oracle

I would hope the result would be

FROM amazon-correta:11

RUN java --version

But after building I get the following output:

   1 |     FROM amazon-correta:11
   2 |     # DOCKERFILE-X:START file="./Dockerfile.oracle" includedBy="dockerfile_1742482510" includeType="include"
   3 | >>> FROM oracle-java:11
   4 |     RUN java --version

Is it feasible with dockerfile-x to use it to replace the FROM image or should I look for another way?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions