From cfc180cb32715d4f507b2a15aa76c54515faa75d Mon Sep 17 00:00:00 2001 From: datalore Date: Mon, 19 Feb 2024 20:57:10 +0100 Subject: [PATCH] change: Improved security and size of container --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index d1a2b7b..d3ace61 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,4 +2,7 @@ FROM archlinux:latest RUN pacman --noconfirm -Sy gcc make COPY . . RUN make +RUN pacman --noconfirm -Rnsu gcc make +RUN useradd batstat +USER batstat CMD [ "build/batstat" ]