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?