chore(docker): dont install recommended packages with git
Signed-off-by: Sebastian Yaghoubi <sebastianyaghoubi@gmail.com>
This commit is contained in:
parent
cbeee42f18
commit
a02212dc66
1 changed files with 3 additions and 1 deletions
|
|
@ -2,7 +2,9 @@ FROM python:3.13-slim-bullseye
|
||||||
|
|
||||||
ARG INSTALL_GIT=false
|
ARG INSTALL_GIT=false
|
||||||
RUN if [ "$INSTALL_GIT" = "true" ]; then \
|
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
|
fi
|
||||||
|
|
||||||
# Runtime dependency
|
# Runtime dependency
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue