diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2022-07-09 18:58:57 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-09 18:58:57 +0300 |
commit | 8c272e919f96bcf16a8ce95d466384739093daf8 (patch) | |
tree | ba7fc1e055c254ea220370e5351d24390ac58c1c /packaging/docker | |
parent | 9438e7f1bf027ac29fada2cbe0a58e4f64443e91 (diff) |
fix(packaging): respect CFLAGS arg when building Docker image (#13340)
Diffstat (limited to 'packaging/docker')
-rw-r--r-- | packaging/docker/Dockerfile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packaging/docker/Dockerfile b/packaging/docker/Dockerfile index 194fa536bd..f72d0a9c86 100644 --- a/packaging/docker/Dockerfile +++ b/packaging/docker/Dockerfile @@ -26,7 +26,7 @@ WORKDIR /opt/netdata.git RUN chmod +x netdata-installer.sh && \ cp -rp /deps/* /usr/local/ && \ /bin/echo -e "INSTALL_TYPE='oci'\nPREBUILT_ARCH='$(uname -m)'" > ./system/.install-type && \ - CFLAGS="-O2 -pipe" ./netdata-installer.sh --dont-wait --dont-start-it --use-system-protobuf \ + CFLAGS=${CFLAGS:-"-O2 -pipe"} ./netdata-installer.sh --dont-wait --dont-start-it --use-system-protobuf \ ${EXTRA_INSTALL_OPTS} --one-time-build "$([ "$RELEASE_CHANNEL" = stable ] && echo --stable-channel)" # files to one directory |