Skip to content

Commit

Permalink
Add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjwebb committed Oct 31, 2024
1 parent d3a671b commit 56921a3
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM python:3.12-bookworm

WORKDIR /work

COPY requirements.txt /work/IATI-Dashboard/requirements.txt

RUN git config --global --add safe.directory /work/IATI-Stats/data

RUN pip install -r /work/IATI-Dashboard/requirements.txt

# 2024-03-20: Emergency fix
# We were seeing cert errors inside the docker container after a new Lets Encrypt was issued.
#
# We know there are changes coming about root certificates and the error may be caused by that:
# https://blog.cloudflare.com/upcoming-lets-encrypt-certificate-chain-change-and-impact-for-cloudflare-customers
#
# I tried installing the LE root cert's manually but that didn't work.
# As live is broken for now we need this emergency fix, but we should remove it in the future.
RUN echo "check_certificate=off" > /root/.wgetrc

0 comments on commit 56921a3

Please sign in to comment.