Adding git in container package dependencies

The build-info.sh script is invoking git on lines 6 and 11.
However git is not installed by default in ubuntu base images.

This causes an unhandled exception to occur, which is silently passed
during the build.

Signed-off-by: Jiri Podivin <jpodivin@gmail.com>
This commit is contained in:
Jiri Podivin 2023-05-28 09:33:33 +02:00
parent a6704643b6
commit c01c7d2caf
2 changed files with 2 additions and 2 deletions

View file

@ -3,7 +3,7 @@ ARG UBUNTU_VERSION=22.04
FROM ubuntu:$UBUNTU_VERSION as build FROM ubuntu:$UBUNTU_VERSION as build
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y build-essential python3 python3-pip apt-get install -y build-essential python3 python3-pip git
COPY requirements.txt requirements.txt COPY requirements.txt requirements.txt

View file

@ -3,7 +3,7 @@ ARG UBUNTU_VERSION=22.04
FROM ubuntu:$UBUNTU_VERSION as build FROM ubuntu:$UBUNTU_VERSION as build
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y build-essential apt-get install -y build-essential git
WORKDIR /app WORKDIR /app