fix: add the git binary to the final step of the container images (#5863)

Add the git binary to the runtime images
This commit is contained in:
Mattias Michaux 2025-01-22 16:07:34 +01:00 committed by GitHub
commit cdf85e55de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 4 additions and 1 deletions

View file

@ -69,6 +69,7 @@ FROM python:3.12.3-slim AS runtime
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install git -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& useradd user -u 1000 -g 0 --no-create-home --home-dir /app/data

View file

@ -73,6 +73,7 @@ FROM python:3.12.3-slim AS runtime
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install git -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& useradd user -u 1000 -g 0 --no-create-home --home-dir /app/data

View file

@ -68,7 +68,7 @@ FROM python:3.12.3-slim AS runtime
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y curl \
&& apt-get install -y curl git \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& useradd user -u 1000 -g 0 --no-create-home --home-dir /app/data \

View file

@ -9,6 +9,7 @@ RUN apt-get update \
build-essential \
curl \
npm \
git \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*