Skip to content

Commit dad5bae

Browse files
committed
Install 'git' 2.39 to patch for CVE
1 parent 20cb1c9 commit dad5bae

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ ENV PTBT_DATADIR="${PTBT_WORKDIR}/data"
44
ENV PTBT_USER="tfbackendsvc"
55
COPY . "${PTBT_WORKDIR}"
66
RUN mkdir "${PTBT_DATADIR}"
7+
8+
# Patch for Git CVE - remove when git version >= 2.39
9+
RUN apt-get update
10+
RUN apt install software-properties-common -y
11+
RUN add-apt-repository ppa:git-core/ppa -y
12+
713
RUN apt-get update
814
RUN apt-get dist-upgrade -y
915
RUN apt-get install python3 python3-pip python3-setuptools net-tools openssh-client sudo git -y

0 commit comments

Comments
 (0)