ADD: run everyting as a user not root
All checks were successful
continuous-integration/drone Build is passing
All checks were successful
continuous-integration/drone Build is passing
This commit is contained in:
parent
13816be8ca
commit
82af1944bb
@ -1,3 +1,9 @@
|
|||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
RUN apk --no-cache add netcat-openbsd
|
RUN apk --no-cache add netcat-openbsd
|
||||||
|
|
||||||
|
# add a user for running netcat in the container
|
||||||
|
RUN addgroup netcat && adduser -u 8888 -D -G netcat netcat
|
||||||
|
|
||||||
|
# run everything as the netcat user
|
||||||
|
USER netcat
|
||||||
|
Loading…
Reference in New Issue
Block a user