Objective: An image which has both Python, and Kafka tools available.
I started with Docker multistage builds but soon realized that I got the concept wrong:
# syntax=docker/dockerfile:1
FROM confluentinc/cp-kafka:latest
WORKDIR /home/appuser
RUN ["kafka-topics","--version"]
FROM python:alpine
CMD ["python"]
This builds a small image with just Python alpine.
So how do write a Dockerfile that will use two base images to build a new one?