chore(docker): dont install recommended packages with git

Signed-off-by: Sebastian Yaghoubi <sebastianyaghoubi@gmail.com>
This commit is contained in:
Sebastian Yaghoubi 2024-12-26 14:09:58 -08:00
parent cbeee42f18
commit a02212dc66
No known key found for this signature in database
GPG key ID: 563B612A0D06FC4F

View file

@ -2,7 +2,9 @@ FROM python:3.13-slim-bullseye
ARG INSTALL_GIT=false
RUN if [ "$INSTALL_GIT" = "true" ]; then \
apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*; \
apt-get update && apt-get install -y --no-install-recommends \
git \
&& rm -rf /var/lib/apt/lists/*; \
fi
# Runtime dependency