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