diff --git a/.drone.yml b/.drone.yml index 4b7a911..71440bc 100644 --- a/.drone.yml +++ b/.drone.yml @@ -73,7 +73,6 @@ steps: auto_tag: true auto_tag_suffix: linux-arm64 dockerfile: Dockerfile.linux.arm64 - platform: linux/arm64 when: event: [push, tag] depends_on: diff --git a/Dockerfile b/Dockerfile index 1489f55..2e3746b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,9 @@ -FROM drone/ca-certs +FROM amd64/alpine:3.17 as alpine +RUN apk add -U --no-cache ca-certificates + +FROM amd64/alpine:3.17 +ENV GODEBUG netdns=go +COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ COPY release/linux/amd64/drone /bin/ diff --git a/Dockerfile.linux.arm b/Dockerfile.linux.arm index 1091c58..be33100 100644 --- a/Dockerfile.linux.arm +++ b/Dockerfile.linux.arm @@ -1,4 +1,11 @@ -FROM drone/ca-certs +FROM arm32v7/alpine:3.12 as alpine +RUN apk add -U --no-cache ca-certificates + + +FROM arm64v8/alpine:3.12 + +ENV GODEBUG netdns=go +COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ COPY release/linux/arm/drone /bin/ diff --git a/Dockerfile.linux.arm64 b/Dockerfile.linux.arm64 index 1ce230f..f31a295 100644 --- a/Dockerfile.linux.arm64 +++ b/Dockerfile.linux.arm64 @@ -1,4 +1,11 @@ -FROM drone/ca-certs +FROM arm64v8/alpine:3.12 as alpine +RUN apk add -U --no-cache ca-certificates + + +FROM arm64v8/alpine:3.12 + +ENV GODEBUG netdns=go +COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ COPY release/linux/arm64/drone /bin/ diff --git a/Dockerfile.linux.ppc64le b/Dockerfile.linux.ppc64le index 783b51c..dfd2e2e 100644 --- a/Dockerfile.linux.ppc64le +++ b/Dockerfile.linux.ppc64le @@ -1,4 +1,9 @@ -FROM drone/ca-certs +FROM amd64/alpine:3.17 as alpine +RUN apk add -U --no-cache ca-certificates + +FROM amd64/alpine:3.17 +ENV GODEBUG netdns=go +COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ COPY release/linux/ppc64le/drone /bin/