build: Remove unneeded mounts

Signed-off-by: Chris Crone <christopher.crone@docker.com>
This commit is contained in:
Chris Crone 2020-09-23 17:13:40 +02:00
parent 5aa14ef911
commit 66c9094e2d
1 changed files with 1 additions and 3 deletions

View File

@ -105,10 +105,8 @@ RUN --mount=target=. \
FROM base as check-license-headers
RUN go get -u github.com/kunalkushwaha/ltag
RUN --mount=target=. \
--mount=type=cache,target=/root/.cache/go-build \
make -f builder.Makefile check-license-headers
FROM base as check-go-mod
COPY . .
RUN --mount=type=cache,target=/root/.cache/go-build \
make -f builder.Makefile check-go-mod
RUN make -f builder.Makefile check-go-mod