diff --git a/conda/Dockerfile b/conda/Dockerfile index 5728b9b97..95b911c8b 100644 --- a/conda/Dockerfile +++ b/conda/Dockerfile @@ -8,6 +8,8 @@ ENV LANGUAGE en_US.UTF-8 ARG DEVTOOLSET_VERSION=9 RUN yum install -y wget curl perl util-linux xz bzip2 git patch which unzip +# Just add everything as a safe.directory for git since these will be used in multiple places with git +RUN git config --global --add safe.directory '*' RUN yum install -y yum-utils centos-release-scl RUN yum-config-manager --enable rhel-server-rhscl-7-rpms RUN yum install -y devtoolset-${DEVTOOLSET_VERSION}-gcc devtoolset-${DEVTOOLSET_VERSION}-gcc-c++ devtoolset-${DEVTOOLSET_VERSION}-gcc-gfortran devtoolset-${DEVTOOLSET_VERSION}-binutils diff --git a/libtorch/Dockerfile b/libtorch/Dockerfile index 9f5ebf9db..12cc9a421 100644 --- a/libtorch/Dockerfile +++ b/libtorch/Dockerfile @@ -6,6 +6,8 @@ ENV DEBIAN_FRONTEND=noninteractive RUN apt-get clean && apt-get update RUN apt-get install -y curl locales git-all autoconf automake make cmake wget unzip +# Just add everything as a safe.directory for git since these will be used in multiple places with git +RUN git config --global --add safe.directory '*' RUN locale-gen en_US.UTF-8 diff --git a/manywheel/Dockerfile b/manywheel/Dockerfile index 1d4ecbcfd..b070ae8f8 100644 --- a/manywheel/Dockerfile +++ b/manywheel/Dockerfile @@ -11,6 +11,8 @@ ENV LANGUAGE en_US.UTF-8 ARG DEVTOOLSET_VERSION=9 RUN yum install -y wget curl perl util-linux xz bzip2 git patch which perl zlib-devel +# Just add everything as a safe.directory for git since these will be used in multiple places with git +RUN git config --global --add safe.directory '*' RUN yum install -y yum-utils centos-release-scl RUN yum-config-manager --enable rhel-server-rhscl-7-rpms RUN yum install -y devtoolset-${DEVTOOLSET_VERSION}-gcc devtoolset-${DEVTOOLSET_VERSION}-gcc-c++ devtoolset-${DEVTOOLSET_VERSION}-gcc-gfortran devtoolset-${DEVTOOLSET_VERSION}-binutils