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"]