File tree Expand file tree Collapse file tree 6 files changed +24
-3
lines changed Expand file tree Collapse file tree 6 files changed +24
-3
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" && \
30
30
31
31
EXPOSE 8125/udp 8092/udp 8094
32
32
33
+ USER telegraf
34
+
33
35
COPY entrypoint.sh /entrypoint.sh
34
36
ENTRYPOINT ["/entrypoint.sh" ]
35
37
CMD ["telegraf" ]
Original file line number Diff line number Diff line change @@ -25,10 +25,15 @@ RUN set -ex && \
25
25
cp -a /usr/src/telegraf*/usr/bin/telegraf /usr/bin/ && \
26
26
gpgconf --kill all && \
27
27
rm -rf *.tar.gz* /usr/src /root/.gnupg && \
28
- apk del .build-deps
28
+ apk del .build-deps && \
29
+ addgroup -S telegraf && \
30
+ adduser -S telegraf -G telegraf && \
31
+ chown -R telegraf:telegraf /etc/telegraf
29
32
30
33
EXPOSE 8125/udp 8092/udp 8094
31
34
35
+ USER telegraf
36
+
32
37
COPY entrypoint.sh /entrypoint.sh
33
38
ENTRYPOINT ["/entrypoint.sh" ]
34
39
CMD ["telegraf" ]
Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" && \
30
30
31
31
EXPOSE 8125/udp 8092/udp 8094
32
32
33
+ USER telegraf
34
+
33
35
COPY entrypoint.sh /entrypoint.sh
34
36
ENTRYPOINT ["/entrypoint.sh" ]
35
37
CMD ["telegraf" ]
Original file line number Diff line number Diff line change @@ -25,10 +25,15 @@ RUN set -ex && \
25
25
cp -a /usr/src/telegraf*/usr/bin/telegraf /usr/bin/ && \
26
26
gpgconf --kill all && \
27
27
rm -rf *.tar.gz* /usr/src /root/.gnupg && \
28
- apk del .build-deps
28
+ apk del .build-deps && \
29
+ addgroup -S telegraf && \
30
+ adduser -S telegraf -G telegraf && \
31
+ chown -R telegraf:telegraf /etc/telegraf
29
32
30
33
EXPOSE 8125/udp 8092/udp 8094
31
34
35
+ USER telegraf
36
+
32
37
COPY entrypoint.sh /entrypoint.sh
33
38
ENTRYPOINT ["/entrypoint.sh" ]
34
39
CMD ["telegraf" ]
Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" && \
30
30
31
31
EXPOSE 8125/udp 8092/udp 8094
32
32
33
+ USER telegraf
34
+
33
35
COPY entrypoint.sh /entrypoint.sh
34
36
ENTRYPOINT ["/entrypoint.sh" ]
35
37
CMD ["telegraf" ]
Original file line number Diff line number Diff line change @@ -25,10 +25,15 @@ RUN set -ex && \
25
25
cp -a /usr/src/telegraf*/usr/bin/telegraf /usr/bin/ && \
26
26
gpgconf --kill all && \
27
27
rm -rf *.tar.gz* /usr/src /root/.gnupg && \
28
- apk del .build-deps
28
+ apk del .build-deps && \
29
+ addgroup -S telegraf && \
30
+ adduser -S telegraf -G telegraf && \
31
+ chown -R telegraf:telegraf /etc/telegraf
29
32
30
33
EXPOSE 8125/udp 8092/udp 8094
31
34
35
+ USER telegraf
36
+
32
37
COPY entrypoint.sh /entrypoint.sh
33
38
ENTRYPOINT ["/entrypoint.sh" ]
34
39
CMD ["telegraf" ]
You can’t perform that action at this time.
0 commit comments