From 08d7d8c803e6c0f8ada68f8517445852615bcf42 Mon Sep 17 00:00:00 2001 From: Soumyajit Das Date: Tue, 5 Sep 2023 19:19:20 +0530 Subject: [PATCH] [feat]: [CI-8942]: Add alpine support (#240) * [feat]: [CI-8942]: Add alpine support --------- Co-authored-by: TP Honey --- .drone.yml | 1 - Dockerfile | 7 ++++++- Dockerfile.linux.arm | 9 ++++++++- Dockerfile.linux.arm64 | 9 ++++++++- Dockerfile.linux.ppc64le | 7 ++++++- 5 files changed, 28 insertions(+), 5 deletions(-) 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/