fix(packaging): respect CFLAGS arg when building Docker image (#13340)
Ilya Mashchenko committed
Jul 9, 2022 at 18:58 UTC
8c272e919f96bcf16a8ce95d466384739093daf8
1 file changed
+1
-1
packaging/docker/Dockerfile
+1
-1
@@ -26,7 +26,7 @@ WORKDIR /opt/netdata.git
26
RUN chmod +x netdata-installer.sh && \
27
cp -rp /deps/* /usr/local/ && \
28
/bin/echo -e "INSTALL_TYPE='oci'\nPREBUILT_ARCH='$(uname -m)'" > ./system/.install-type && \
29
- CFLAGS="-O2 -pipe" ./netdata-installer.sh --dont-wait --dont-start-it --use-system-protobuf \
29
+ CFLAGS=${CFLAGS:-"-O2 -pipe"} ./netdata-installer.sh --dont-wait --dont-start-it --use-system-protobuf \
30
${EXTRA_INSTALL_OPTS} --one-time-build "$([ "$RELEASE_CHANNEL" = stable ] && echo --stable-channel)"
31
32
# files to one directory