Fix missing go.sum entry errors in staging.Dockerfile
This commit is contained in:
parent
e94a646e19
commit
bd5f41a76b
|
@ -26,8 +26,8 @@ WORKDIR /src
|
|||
RUN go env -w GOCACHE=/go-cache
|
||||
RUN go env -w GOMODCACHE=/gomod-cache
|
||||
RUN --mount=type=cache,target=/gomod-cache \
|
||||
--mount=type=bind,source=./,target=/src \
|
||||
go mod download
|
||||
--mount=type=bind,source=./,target=/src,rw \
|
||||
/bin/bash -c 'go mod tidy; go get -t'
|
||||
|
||||
FROM cache AS build
|
||||
ARG MAKEOPTS
|
||||
|
|
Loading…
Reference in a new issue