From 561d35aa30368ed1c7f25ae669fd9a35464a92a5 Mon Sep 17 00:00:00 2001 From: Ananay Gupta <30771470+ananay22@users.noreply.github.com> Date: Thu, 29 Jun 2023 00:44:07 -0400 Subject: [PATCH] Update Dockerfile to fix bazel install issues .bazelversion is CRLF which causes an issue with bazel on the linux docker image Plus wget target url split over 2 lines also causes issues on linux docker image --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 03b335823..faf26a118 100644 --- a/Dockerfile +++ b/Dockerfile @@ -63,14 +63,14 @@ RUN ln -s /usr/bin/python3 /usr/bin/python # Install bazel ARG BAZEL_VERSION=6.1.1 RUN mkdir /bazel && \ - wget --no-check-certificate -O /bazel/installer.sh "https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/b\ -azel-${BAZEL_VERSION}-installer-linux-x86_64.sh" && \ + wget --no-check-certificate -O /bazel/installer.sh "https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel-${BAZEL_VERSION}-installer-linux-x86_64.sh" && \ wget --no-check-certificate -O /bazel/LICENSE.txt "https://raw.githubusercontent.com/bazelbuild/bazel/master/LICENSE" && \ chmod +x /bazel/installer.sh && \ /bazel/installer.sh && \ rm -f /bazel/installer.sh COPY . /mediapipe/ +RUN sed $'s/\r$//' .bazelversion > .bazelversion # If we want the docker image to contain the pre-built object_detection_offline_demo binary, do the following # RUN bazel build -c opt --define MEDIAPIPE_DISABLE_GPU=1 mediapipe/examples/desktop/demo:object_detection_tensorflow_demo