In AWS ECR I have 2 images, and I wish to create an image that is the result of combining the contents of these two images. I have the following Dockerfile to do this:
FROM *insert image uri of image #1* as a
COPY --from=a . /a
FROM *insert image uri of image #2* as b
COPY --from=b . /b
When I try to run docker build . -t final-image:latest --file ., I get Error response from daemon: unexpected error reading Dockerfile: read /var/lib/docker/tmp/docker-builder590433020: is a directory. Would anyone know what the correct way to build this image would be?