From 758e4a924e6b47610eaf7efecd0b7ec934e13346 Mon Sep 17 00:00:00 2001 From: Szepesi Tibor Date: Mon, 9 Oct 2023 18:47:40 +0200 Subject: [PATCH] Fix addgroup flag --- Containerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Containerfile b/Containerfile index 02f694d..a36e0d7 100644 --- a/Containerfile +++ b/Containerfile @@ -17,8 +17,8 @@ COPY --from=prod-deps /app/node_modules /app/node_modules COPY --from=build /app/dist /app/dist EXPOSE 3000 -RUN addgroup -S app && \ - adduser -S -D -H --shell /bin/false -G app app && \ +RUN addgroup --system app && \ + adduser --system -D -H --shell /bin/false -G app app && \ chown -R app:app /app USER app CMD [ "node", "/app/dist/server.js" ]