From 6481b683f233c39f2f724a7a6318e445c4176b8c Mon Sep 17 00:00:00 2001 From: Alex Ellis Date: Fri, 14 Jun 2019 19:19:15 +0100 Subject: [PATCH] Add ca-certs to multi-arch gateways Adds package to armhf / arm64 for use with plugins. Signed-off-by: Alex Ellis --- gateway/Dockerfile.arm64 | 3 ++- gateway/Dockerfile.armhf | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/gateway/Dockerfile.arm64 b/gateway/Dockerfile.arm64 index 68fcc99b..9ecf556f 100644 --- a/gateway/Dockerfile.arm64 +++ b/gateway/Dockerfile.arm64 @@ -26,7 +26,8 @@ RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o gateway . FROM alpine:3.9 RUN addgroup -S app \ - && adduser -S -g app app + && adduser -S -g app app \ + && apk add --no-cache ca-certificates WORKDIR /home/app diff --git a/gateway/Dockerfile.armhf b/gateway/Dockerfile.armhf index 963c2594..619d7c20 100644 --- a/gateway/Dockerfile.armhf +++ b/gateway/Dockerfile.armhf @@ -33,7 +33,7 @@ RUN license-check -path ./ --verbose=false "Alex Ellis" "OpenFaaS Project" "Open -X github.com/openfaas/faas/gateway/version.Version=${VERSION}" \ -a -installsuffix cgo -o gateway . -FROM alpine:3.8 +FROM alpine:3.9 LABEL org.label-schema.license="MIT" \ org.label-schema.vcs-url="https://github.com/openfaas/faas" \ @@ -43,7 +43,8 @@ LABEL org.label-schema.license="MIT" \ org.label-schema.docker.schema-version="1.0" RUN addgroup -S app \ - && adduser -S -g app app + && adduser -S -g app app \ + && apk add --no-cache ca-certificates WORKDIR /home/app