BuildKit
BuildKit copied to clipboard
A playground and examples of docker-compose vs buildx bake
``` FROM perl RUN cpanm -n -L ./local App::cpm Carton::Snapshot && rm -rf /root/.cpanm COPY cpanfile ./ COPY cpanfile.snapshot ./ RUN --mount=type=cache,id=perl,target=/root/.perl-cpm \ cpm install -w 16 --no-test -L ./local...
The following line causes an `invalid mount target "/"` error `````` RUN --mount=type=cache,id=piptarget=/root/.cache/pip \` `````` and changing it into `````` RUN --mount=type=cache,id=pip,target=/root/.cache/pip \` `````` fixed the problem for me