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 GOCACHE=/go-cache
|
||||||
RUN go env -w GOMODCACHE=/gomod-cache
|
RUN go env -w GOMODCACHE=/gomod-cache
|
||||||
RUN --mount=type=cache,target=/gomod-cache \
|
RUN --mount=type=cache,target=/gomod-cache \
|
||||||
--mount=type=bind,source=./,target=/src \
|
--mount=type=bind,source=./,target=/src,rw \
|
||||||
go mod download
|
/bin/bash -c 'go mod tidy; go get -t'
|
||||||
|
|
||||||
FROM cache AS build
|
FROM cache AS build
|
||||||
ARG MAKEOPTS
|
ARG MAKEOPTS
|
||||||
|
|
Loading…
Reference in a new issue