-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (29 loc) · 805 Bytes
/
Copy pathDockerfile
File metadata and controls
33 lines (29 loc) · 805 Bytes
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
FROM docker.io/drycc/base:bullseye
RUN adduser --system \
--shell /bin/bash \
--disabled-password \
--group \
drycc
COPY . /
ENV TELEGRAF_VERSION="1.21.3" \
ENVTPL_VERSION="1.0.0" \
JQ_VERSION="1.6"
RUN install-stack telegraf $TELEGRAF_VERSION \
&& install-stack envtpl $ENVTPL_VERSION \
&& install-stack jq $JQ_VERSION \
&& rm -rf \
/usr/share/doc \
/usr/share/man \
/usr/share/info \
/usr/share/locale \
/var/lib/apt/lists/* \
/var/log/* \
/var/cache/debconf/* \
/etc/systemd \
/lib/lsb \
/lib/udev \
/usr/lib/`echo $(uname -m)`-linux-gnu/gconv/IBM* \
/usr/lib/`echo $(uname -m)`-linux-gnu/gconv/EBC* \
&& bash -c "mkdir -p /usr/share/man/man{1..8}"
USER drycc
CMD ["/home/telegraf/start-telegraf"]