Hi !
I would like to know if it’s possible to build a dockerfile from a specific step ?
As an example :
I’ve got my dockerfile with this in :
RUN apt update \
&& apt update \
&& apt install vim \
&& git
RUN git clone myproject \
git checkout dev_branch
RUN do some things
Is it possible to alway start from the step 2 (git step) to force the dockerfile to always do the git clone et git checkout ?
As something like
docker build mydockerfile --step:2 ?
Or should I always do :
docker build --no-cache -t user/image-name
?