Here's a hypothetical scenario: I have Image A, with the task
command installed on it and Image B with fzf
. Both images are built from alpine
. I understand that I can do a multi-stage build like this to produce a single image with both commands on it:
FROM alpine as stage1
RUN apk add task
FROM stage1 as final
RUN apk add fzf
CMD ash
But if Image A and Image B are already built, is there a way to merge the two?
I found this cool project called docker-merge but it throws errors.