Dockerfile.build_test 651 B

123456789101112131415161718192021
  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. FROM ${BASE}
  6. ARG PRE
  7. ENV PRE=${PRE}
  8. ARG RMJSONC
  9. ENV RMJSONC=${RMJSONC}
  10. ENV DISABLE_TELEMETRY=1
  11. ENV GITHUB_ACTIONS=true
  12. RUN echo "${PRE}" > /prep-cmd.sh && \
  13. echo "${RMJSONC}" > /rmjsonc.sh && chmod +x /rmjsonc.sh && \
  14. /bin/sh /prep-cmd.sh
  15. COPY . /netdata
  16. RUN /netdata/packaging/installer/install-required-packages.sh --dont-wait --non-interactive netdata