Skip to content

Commit

Permalink
update root certificates at every build (developmentseed#381)
Browse files Browse the repository at this point in the history
* update root certificates at every build

* updated changelog

* Revert "updated changelog"

This reverts commit d875484.
  • Loading branch information
emmanuelmathot authored Oct 1, 2021
1 parent 46dbb25 commit 4474aed
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
FROM tiangolo/uvicorn-gunicorn:python3.8

# Ensure root certificates are always updated at evey container build
# and curl is using the latest version of them
RUN mkdir /usr/local/share/ca-certificates/cacert.org
RUN cd /usr/local/share/ca-certificates/cacert.org && curl -k -O https://www.cacert.org/certs/root.crt
RUN cd /usr/local/share/ca-certificates/cacert.org && curl -k -O https://www.cacert.org/certs/class3.crt
RUN update-ca-certificates
ENV CURL_CA_BUNDLE /etc/ssl/certs/ca-certificates.crt

COPY src/titiler/ /tmp/titiler/
Expand Down

0 comments on commit 4474aed

Please sign in to comment.