My Dockerfile (somewhat redacted here) looks like this: FROM python:3.9.9-slim-bullseye WORKDIR /tmp RUN --mount=type=secret,id=token echo "$(cat /run/secret
When using buildkit, using the docker cli frontend, I sometimes do not want to use layer-cache, but do want to rely on the newer mount-cache type. RUN --mount=