2024-01-25 13:54:12 +00:00
FROM python:3.11.7-slim-bookworm
2023-10-31 10:00:08 +00:00
2024-01-16 09:56:12 +00:00
# last line is dependencies for weasyprint (for generating pdfs in lafede pilot) https://doc.courtbouillon.org/weasyprint/stable/first_steps.html#debian-11
2024-01-25 13:54:12 +00:00
RUN apt update && \
apt-get install -y \
2023-12-12 10:09:39 +00:00
git \
sqlite3 \
2024-01-16 09:56:12 +00:00
jq \
2024-01-25 13:54:12 +00:00
libpango-1.0-0 libpangoft2-1.0-0 \
&& pip install cffi brotli \
&& rm -rf /var/lib/apt/lists/*
2023-10-31 10:00:08 +00:00
2023-12-01 09:10:11 +00:00
WORKDIR /opt/idhub
2023-10-31 10:00:08 +00:00
2024-01-25 13:54:12 +00:00
# reduce size (python specifics) -> src https://stackoverflow.com/questions/74616667/removing-pip-cache-after-installing-dependencies-in-docker-image
ENV PYTHONDONTWRITEBYTECODE = 1
# here document in dockerfile src https://stackoverflow.com/questions/40359282/launch-a-cat-command-unix-into-dockerfile
RUN cat > /etc/pip.conf <<END
[ install]
compile = no
[ global]
no-cache-dir = True
END
RUN pip install --upgrade pip
2023-10-31 10:00:08 +00:00
2024-01-23 09:41:20 +00:00
COPY ssikit_trustchain/didkit-0.3.2-cp311-cp311-manylinux_2_34_x86_64.whl /opt/idhub
COPY IdHub/requirements.txt /opt/idhub
2024-01-25 13:54:12 +00:00
RUN pip install -r requirements.txt
2023-10-31 10:00:08 +00:00
2023-12-01 09:10:11 +00:00
COPY docker/idhub.entrypoint.sh /
ENTRYPOINT sh /idhub.entrypoint.sh