Fix missing go.sum entry errors in staging.Dockerfile

This commit is contained in:
Bohdan Horbeshko 2024-05-12 11:05:18 -04:00
parent e94a646e19
commit bd5f41a76b

View file

@ -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