From 82af1944bbdf6c07149a7ddab8a1d1b5311cf8d9 Mon Sep 17 00:00:00 2001 From: Dominik Meyer Date: Wed, 10 Jan 2024 20:58:05 +0100 Subject: [PATCH] ADD: run everyting as a user not root --- Containerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Containerfile b/Containerfile index fd9fc0e..24cdbc0 100644 --- a/Containerfile +++ b/Containerfile @@ -1,3 +1,9 @@ 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