netcat/Containerfile
Dominik Meyer 82af1944bb
All checks were successful
continuous-integration/drone Build is passing
ADD: run everyting as a user not root
2024-01-10 20:58:05 +01:00

10 lines
216 B
Docker

FROM alpine:latest
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