Dockerfile.clang 628 B

12345678910111213141516171819
  1. FROM debian:12 AS build
  2. # Disable apt/dpkg interactive mode
  3. ENV DEBIAN_FRONTEND=noninteractive
  4. # Install all build dependencies
  5. COPY packaging/installer/install-required-packages.sh /tmp/install-required-packages.sh
  6. RUN /tmp/install-required-packages.sh --dont-wait --non-interactive netdata-all
  7. # Install Clang and set as default CC
  8. RUN apt-get install -y clang && \
  9. update-alternatives --install /usr/bin/cc cc /usr/bin/clang 100 && \
  10. update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++ 100
  11. WORKDIR /netdata
  12. COPY . .
  13. # Build Netdata
  14. RUN ./netdata-installer.sh --dont-wait --dont-start-it --disable-go