Is it possible to use a multi-stage Dockerfile
where the first base image pertains to Ubuntu, then the second one pertains to Alpine. I know that the end image resulting from the build using this Dockerfile cannot be executed on an Ubuntu platform since it also contains Alpine instructions and the same if you execute it on Alpine. But I would still like to confirm if that is the case
For example, here is my sample Dockerfile:
FROM some-ubuntu-base-image:latest
RUN apt-get update && apt-get install -y my-ubuntu-package
FROM some-alpine-base-image:latest
RUN apk add my-alpine-package
............
.............