File tree Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,9 @@ RUN set -ex && \
23
23
chmod +x /usr/src/influxdb-*/* && \
24
24
cp -a /usr/src/influxdb-*/* /usr/bin/ && \
25
25
rm -rf *.tar.gz* /usr/src /root/.gnupg && \
26
- apk del .build-deps
26
+ apk del .build-deps && \
27
+ addgroup -g 1000 influxdb && \
28
+ adduser -G influxdb -u 1000 -S -h /var/lib/influxdb influxdb
27
29
COPY influxdb.conf /etc/influxdb/influxdb.conf
28
30
29
31
EXPOSE 8086
Original file line number Diff line number Diff line change @@ -23,7 +23,9 @@ RUN set -ex && \
23
23
chmod +x /usr/src/influxdb-*/* && \
24
24
cp -a /usr/src/influxdb-*/* /usr/bin/ && \
25
25
rm -rf *.tar.gz* /usr/src /root/.gnupg && \
26
- apk del .build-deps
26
+ apk del .build-deps && \
27
+ addgroup -g 1000 influxdb && \
28
+ adduser -G influxdb -u 1000 -S -h /var/lib/influxdb influxdb
27
29
COPY influxdb.conf /etc/influxdb/influxdb.conf
28
30
29
31
EXPOSE 8086
Original file line number Diff line number Diff line change @@ -23,7 +23,9 @@ RUN set -ex && \
23
23
chmod +x /usr/src/influxdb-*/* && \
24
24
cp -a /usr/src/influxdb-*/* /usr/bin/ && \
25
25
rm -rf *.tar.gz* /usr/src /root/.gnupg && \
26
- apk del .build-deps
26
+ apk del .build-deps && \
27
+ addgroup -g 1000 influxdb && \
28
+ adduser -G influxdb -u 1000 -S -h /var/lib/influxdb influxdb
27
29
COPY influxdb.conf /etc/influxdb/influxdb.conf
28
30
29
31
EXPOSE 8086
Original file line number Diff line number Diff line change @@ -21,7 +21,9 @@ RUN set -ex && \
21
21
chmod +x /usr/src/influxdb-*/* && \
22
22
cp -a /usr/src/influxdb-*/* /usr/bin/ && \
23
23
rm -rf *.tar.gz* /usr/src /root/.gnupg && \
24
- apk del .build-deps
24
+ apk del .build-deps && \
25
+ addgroup -g 1000 influxdb && \
26
+ adduser -G influxdb -u 1000 -S -h /var/lib/influxdb influxdb
25
27
COPY influxdb.conf /etc/influxdb/influxdb.conf
26
28
27
29
EXPOSE 8083 8086
You can’t perform that action at this time.
0 commit comments