FROM python:3.11.10-slim-bookworm # last line is dependencies for weasyprint (for generating pdfs in lafede pilot) https://doc.courtbouillon.org/weasyprint/stable/first_steps.html#debian-11 RUN apt update && \ apt-get install -y \ python3-xapian \ git \ sqlite3 \ jq \ && rm -rf /var/lib/apt/lists/* WORKDIR /opt/devicehub-django # 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 <