File tree Expand file tree Collapse file tree 3 files changed +12
-9
lines changed Expand file tree Collapse file tree 3 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -25,12 +25,13 @@ 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
32
- RUN addgroup -S telegraf
33
- RUN adduser -S telegraf -G telegraf
34
35
USER telegraf
35
36
36
37
COPY entrypoint.sh /entrypoint.sh
Original file line number Diff line number Diff line change @@ -25,12 +25,13 @@ 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
32
- RUN addgroup -S telegraf
33
- RUN adduser -S telegraf -G telegraf
34
35
USER telegraf
35
36
36
37
COPY entrypoint.sh /entrypoint.sh
Original file line number Diff line number Diff line change @@ -25,12 +25,13 @@ 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
32
- RUN addgroup -S telegraf
33
- RUN adduser -S telegraf -G telegraf
34
35
USER telegraf
35
36
36
37
COPY entrypoint.sh /entrypoint.sh
You can’t perform that action at this time.
0 commit comments