From 65a7ac04f221eaa2e92c5fc171e82112caafa153 Mon Sep 17 00:00:00 2001 From: Steven Polley Date: Sat, 25 Apr 2020 01:16:48 -0600 Subject: [PATCH] Add trusted certificates from build environment --- .drone.yml | 2 ++ Dockerfile | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/.drone.yml b/.drone.yml index 4376772..018816f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -18,6 +18,8 @@ steps: - go version - go get - go build -a -ldflags '-w' + - cp /usr/local/go/lib/time/zoneinfo.zip . + - cp /etc/ssl/certs/ca-certificates.crt . - name: package in docker container image: plugins/docker diff --git a/Dockerfile b/Dockerfile index 7d09301..c83a989 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,10 @@ COPY public public COPY templates templates COPY covid19-edmonton . +# These must be supplied. In the CICD pipeline, .drone.yml, this is available from the build environment +COPY ca-certificates.crt /etc/ssl/certs/ +COPY zoneinfo.zip ./zoneinfo.zip + EXPOSE 8080 CMD [ "./covid19-edmonton", "-web"]