Minim golang 1.18 and drop vendor folder (#979)

This commit is contained in:
6543
2022-06-17 01:57:02 +02:00
committed by GitHub
parent d2aad473d7
commit 17999da20f
4845 changed files with 184 additions and 1436178 deletions

View File

@@ -1,4 +1,4 @@
FROM --platform=$BUILDPLATFORM golang:1.16 AS build
FROM --platform=$BUILDPLATFORM golang:1.18 AS build
WORKDIR /src
COPY . .
@@ -11,7 +11,7 @@ FROM scratch
ENV GODEBUG=netdns=go
EXPOSE 3000
# copy certs from golang:1.16 image
# copy certs from golang:1.18 image
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
# copy agent binary
COPY --from=build /src/dist/woodpecker-agent /bin/