From c9458166c703dfba68283f2caf0c3f017871a1f4 Mon Sep 17 00:00:00 2001 From: Joe Shannon Date: Tue, 30 Apr 2024 16:27:34 +0100 Subject: [PATCH] Install git in runtime container This is required for installing python packages at runtime. It was previously present in the non-slim python container used before but this was accidentally removed with the switch to the copier template. Fixes #445. --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 94b4c3c67..d059a83ed 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,6 +21,9 @@ RUN pip install . # The runtime stage copies the built venv into a slim runtime container FROM python:${PYTHON_VERSION}-slim as runtime # Add apt-get system dependecies for runtime here if needed +RUN apt-get update && apt-get install -y --no-install-recommends \ + # Git required for installing packages at runtime + git COPY --from=build /venv/ /venv/ COPY ./container-startup.sh /container-startup.sh ENV PATH=/venv/bin:$PATH