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
This commit is contained in:
parent
8278dbc38f
commit
561d35aa30
|
@ -63,14 +63,14 @@ RUN ln -s /usr/bin/python3 /usr/bin/python
|
||||||
# Install bazel
|
# Install bazel
|
||||||
ARG BAZEL_VERSION=6.1.1
|
ARG BAZEL_VERSION=6.1.1
|
||||||
RUN mkdir /bazel && \
|
RUN mkdir /bazel && \
|
||||||
wget --no-check-certificate -O /bazel/installer.sh "https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/b\
|
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" && \
|
||||||
azel-${BAZEL_VERSION}-installer-linux-x86_64.sh" && \
|
|
||||||
wget --no-check-certificate -O /bazel/LICENSE.txt "https://raw.githubusercontent.com/bazelbuild/bazel/master/LICENSE" && \
|
wget --no-check-certificate -O /bazel/LICENSE.txt "https://raw.githubusercontent.com/bazelbuild/bazel/master/LICENSE" && \
|
||||||
chmod +x /bazel/installer.sh && \
|
chmod +x /bazel/installer.sh && \
|
||||||
/bazel/installer.sh && \
|
/bazel/installer.sh && \
|
||||||
rm -f /bazel/installer.sh
|
rm -f /bazel/installer.sh
|
||||||
|
|
||||||
COPY . /mediapipe/
|
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
|
# 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
|
# RUN bazel build -c opt --define MEDIAPIPE_DISABLE_GPU=1 mediapipe/examples/desktop/demo:object_detection_tensorflow_demo
|
||||||
|
|
Loading…
Reference in New Issue
Block a user