Skip to content

Commit b74bace

Browse files
committed
Remove exporter user
1 parent fa1fe28 commit b74bace

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Dockerfile

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
FROM debian:10-slim
2-
RUN useradd -u 20001 postgres_exporter \
3-
&& apt-get update \
2+
RUN apt-get update \
43
&& apt-get -y install socat ca-certificates \
54
&& apt-get clean \
65
&& rm -rf /var/lib/apt/lists
76

8-
FROM scratch
9-
10-
COPY --from=0 /etc/passwd /etc/passwd
11-
USER postgres_exporter
12-
137
ARG binary
148

159
COPY $binary /postgres_exporter

0 commit comments

Comments
 (0)