Skip to content

Commit e1826b2

Browse files
authored
Merge pull request #1314 from crazy-max/fix-vendor
dockerfile: fix vendor
2 parents 357d5f2 + 4ab6889 commit e1826b2

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

Dockerfile

+2-7
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,7 @@ RUN --mount=target=. <<EOT
2424
echo "$version" | tee /tmp/.version
2525
EOT
2626

27-
FROM base AS vendored
28-
COPY go.mod go.sum ./
29-
RUN --mount=type=cache,target=/go/pkg/mod \
30-
go mod download
31-
32-
FROM vendored AS test
27+
FROM base AS test
3328
ENV CGO_ENABLED=1
3429
RUN apk add --no-cache gcc linux-headers musl-dev
3530
RUN --mount=type=bind,target=. \
@@ -43,7 +38,7 @@ EOT
4338
FROM scratch AS test-coverage
4439
COPY --from=test /tmp/coverage.txt /coverage.txt
4540

46-
FROM vendored AS build
41+
FROM base AS build
4742
ARG TARGETPLATFORM
4843
RUN --mount=type=bind,target=. \
4944
--mount=type=bind,from=version,source=/tmp/.version,target=/tmp/.version \

0 commit comments

Comments
 (0)