From 7f6fd63f956c9378fb724e09609a6ae354bf9e51 Mon Sep 17 00:00:00 2001 From: John Boiles Date: Fri, 9 Apr 2021 22:05:48 -0700 Subject: [PATCH] Use gcc-8 and g++-8 in the Dockerfile This appears to be necessary since `0.8.3.1`. See also https://github.com/google/mediapipe/issues/1733 --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 1b46ccdc4..cf5c6fa5a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,6 +23,7 @@ ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update && apt-get install -y --no-install-recommends \ build-essential \ + gcc-8 g++-8 \ ca-certificates \ curl \ ffmpeg \ @@ -44,6 +45,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ apt-get clean && \ rm -rf /var/lib/apt/lists/* +# Use gcc-8 and g++-8 by default +RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8 + RUN pip3 install --upgrade setuptools RUN pip3 install wheel RUN pip3 install future