Dockerfile.clang 571 B

123456789101112131415161718
  1. FROM debian:buster 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. WORKDIR /netdata
  11. COPY . .
  12. # Build Netdata
  13. RUN ./netdata-installer.sh --dont-wait --dont-start-it --disable-go --require-cloud