Browse Source

Add trusted certificates from build environment

master
Steven Polley 2 years ago
parent
commit
65a7ac04f2
  1. 2
      .drone.yml
  2. 4
      Dockerfile

2
.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

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

Loading…
Cancel
Save