cmd: ensure proper arch is used for docker container

This commit is contained in:
Stefan Benten 2020-12-20 08:26:23 +01:00 committed by GitHub
parent d961437889
commit 7eab859030
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -1,8 +1,9 @@
ARG DOCKER_ARCH
# Fetch ca-certificates file for arch independent builds below # Fetch ca-certificates file for arch independent builds below
FROM alpine as ca-cert FROM alpine as ca-cert
RUN apk -U add ca-certificates RUN apk -U add ca-certificates
ARG DOCKER_ARCH
FROM ${DOCKER_ARCH:-amd64}/alpine FROM ${DOCKER_ARCH:-amd64}/alpine
ARG TAG ARG TAG
ARG GOARCH ARG GOARCH

View File

@ -1,8 +1,9 @@
ARG DOCKER_ARCH
# Fetch ca-certificates file for arch independent builds below # Fetch ca-certificates file for arch independent builds below
FROM alpine as ca-cert FROM alpine as ca-cert
RUN apk -U add ca-certificates RUN apk -U add ca-certificates
ARG DOCKER_ARCH
FROM ${DOCKER_ARCH:-amd64}/alpine FROM ${DOCKER_ARCH:-amd64}/alpine
ARG TAG ARG TAG
ARG GOARCH ARG GOARCH