master
build_test 21 lines 651 Bytes
Raw
1 # The default value is overridden in every Dockerfile usage, but adding it here helps avoid issues with
2 # CI checks that require a non-empty or valid base image name. See more details here:
3 # https://docs.docker.com/go/dockerfile/rule/invalid-default-arg-in-from/
4 ARG BASE="netdata"
5
6 FROM ${BASE}
7
8 ARG PRE
9 ENV PRE=${PRE}
10 ARG RMJSONC
11 ENV RMJSONC=${RMJSONC}
12 ENV DISABLE_TELEMETRY=1
13 ENV GITHUB_ACTIONS=true
14
15 RUN echo "${PRE}" > /prep-cmd.sh && \
16 echo "${RMJSONC}" > /rmjsonc.sh && chmod +x /rmjsonc.sh && \
17 /bin/sh /prep-cmd.sh
18
19 COPY . /netdata
20
21 RUN /netdata/packaging/installer/install-required-packages.sh --dont-wait --non-interactive netdata