From d6d0b9e08061944f57b02e63de57119163209165 Mon Sep 17 00:00:00 2001 From: Mateus Caruccio Date: Wed, 10 Jul 2024 19:36:46 +0100 Subject: [PATCH] Run as user 1001 --- Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c494171..0fdf837 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,12 @@ ARG BUILDER FROM $BUILDER AS builder FROM ubuntu:24.04 + COPY --from=builder /usr/local/sbin/nutcracker / -RUN mkdir /conf + +RUN useradd -M -u 1001 -U nutcracker && \ + install -m 755 --directory --group=nutcracker --owner=nutcracker /conf + +USER 1001 + ENTRYPOINT [ "/nutcracker" ]