mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-20 23:37:31 +00:00
Minim golang 1.18 and drop vendor folder (#979)
This commit is contained in:
@@ -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/
|
||||
|
Reference in New Issue
Block a user