dockerfile-x icon indicating copy to clipboard operation
dockerfile-x copied to clipboard

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

Open royteeuwen opened this issue 10 months ago • 0 comments

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?

royteeuwen avatar Mar 20 '25 14:03 royteeuwen