For example I have the following lines in the dockerfile:
RUN --mount=type=cache,target=/go/pkg/mod go mod download
RUN --mount=type=cache,target=/root/.cache/go-build --mount=type=cache,target=/go/pkg/mod CGO_ENABLED=0 go build -ldflags "${LDFLAGS}" -o app ./cmd/controlplane
How are those cache lines handled across rebuilds? I'm missing details in the documentation to understand what's happening.
For example I have the following lines in the dockerfile:
How are those cache lines handled across rebuilds? I'm missing details in the documentation to understand what's happening.