Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Commit 5cc7752

Browse files
committed
Run Nmap with a non root user
1 parent 53ca879 commit 5cc7752

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
FROM alpine:3.11
22
RUN apk add --no-cache nmap=7.80-r1 nmap-scripts=7.80-r1
3+
RUN addgroup -S nmap && adduser -S -g nmap nmap
4+
USER nmap
35
CMD [nmap]

0 commit comments

Comments
 (0)