If I create a Dockerfile with named multistage images, for example backend and frontend, and frontend copies files from backend, podman-compose taggs both image names to the same image id.
Expected behavior is, that two images with a single tag is created.
If I create a Dockerfile with named multistage images, for example backend and frontend, and frontend copies files from backend, podman-compose taggs both image names to the same image id.
Expected behavior is, that two images with a single tag is created.
I created a simple example to reproduce that behavior: Dockerfile.txt docker-compose.yml.txt
(As Github only accepts a few filetypes, I added .txt to both files.)
If I run docker-compose build, both images are built but the last image defined in Dockerfile will get both tags and the other image is not tagged:
If I now do
podman-compose up
, andpodman exec -it test_backend_1 /bin/bash
/copiedfile exists in the image instead of testfile.Greetings Jan