-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathDockerfile.v1
More file actions
82 lines (78 loc) · 1.81 KB
/
Copy pathDockerfile.v1
File metadata and controls
82 lines (78 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
FROM alpine:3.24
LABEL org.opencontainers.image.authors="Netdatabot <bot@netdata.cloud>"
LABEL org.opencontainers.image.source="https://github.com/netdata/helper-images"
LABEL org.opencontainers.image.title="Netdata Agent Static Builder Image"
LABEL org.opencontainers.image.description="Builder image for creating static builds of the Netdata Agent"
LABEL org.opencontainers.image.vendor="Netdata Inc."
RUN apk add --no-cache \
alpine-sdk \
autoconf \
automake \
bash \
binutils \
bison \
brotli-dev \
brotli-static \
cargo \
clang \
cmake \
coreutils \
curl \
curl-static \
elfutils-dev \
flex \
gcc \
git \
gnutls-dev \
gzip \
jq \
libelf-static \
libidn2-dev \
libidn2-static \
libmnl-dev \
libmnl-static \
libtool \
libuv-dev \
libuv-static \
libpsl-dev \
libpsl-static \
libunistring-dev \
libunistring-static \
lz4-dev \
lz4-static \
make \
mongo-c-driver-dev \
mongo-c-driver-static \
musl-fts-dev \
ncurses-dev \
ncurses-static \
netcat-openbsd \
openssh \
patch \
pcre2-dev \
pcre2-static \
pkgconfig \
rust \
samurai \
snappy-dev \
snappy-static \
unixodbc-dev \
unixodbc-static \
util-linux-dev \
util-linux-static \
wget \
xz \
xz-static \
yaml-dev \
yaml-static \
zlib-dev \
zlib-static \
zstd-dev \
zstd-static
COPY static-builder/snappy.pc /usr/lib/pkgconfig/snappy.pc
ENV PATH="/usr/local/go/bin:${PATH}"
ADD https://raw.githubusercontent.com/netdata/netdata/master/packaging/check-for-go-toolchain.sh /tmp/check-for-go-toolchain.sh
RUN . /tmp/check-for-go-toolchain.sh && \
if ! ensure_go_toolchain; then \
echo "ERROR: ${GOLANG_FAILURE_REASON}" && exit 1 ; \
fi