adding non-root user in dockerfile (#6)
Signed-off-by: vsamidurai <vilvaram@gmail.com>
This commit is contained in:
parent
bca1dc5c86
commit
646ded9be8
@ -9,4 +9,5 @@ RUN go build -o dnsmasq_exporter
|
||||
FROM scratch
|
||||
WORKDIR /app
|
||||
COPY --from=build-env /src/dnsmasq_exporter /app/
|
||||
USER 65534
|
||||
ENTRYPOINT ["/app/dnsmasq_exporter"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user