Let's say I have a Dockerfile
like this:
FROM <some image> as base
COPY src /src
RUN <build command>
FROM base as test
RUN <test command>
FROM base as lint
RUN <lint command>
FROM base as <you get the idea>
RUN <test command>
FROM <slim-image> as production
COPY --from=base
I would like one command that runs all these targets, with BuildKit.
Is there an easy way, or would I have to script that?