mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-20 23:46:23 +01:00
ac507466c3
Recent versions of `docker build` started generating the InvalidDefaultArgInFrom warning if Dockerfile contains an ARG without default value. While this warning doesn't affect building Docker packages via `make package-*` commands, it is better suppressing the warning, so it doesn't clutter `make package-*` output with the noise, which can hide real issues in the future.
15 lines
493 B
Docker
15 lines
493 B
Docker
ARG go_builder_image=non-existing
|
|
FROM $go_builder_image
|
|
STOPSIGNAL SIGINT
|
|
RUN apk add git gcc musl-dev make wget --no-cache && \
|
|
mkdir /opt/cross-builder && \
|
|
cd /opt/cross-builder && \
|
|
for arch in aarch64 x86_64; do \
|
|
wget \
|
|
https://musl.cc/${arch}-linux-musl-cross.tgz \
|
|
-O /opt/cross-builder/${arch}-musl.tgz \
|
|
--no-verbose && \
|
|
tar zxf ${arch}-musl.tgz -C ./ && \
|
|
rm /opt/cross-builder/${arch}-musl.tgz; \
|
|
done
|