From d5b2285d09c51a155ba476dd1e6e7c0ede869720 Mon Sep 17 00:00:00 2001 From: Julian Appel Date: Fri, 30 Oct 2026 23:04:41 +0100 Subject: [PATCH] Run the production image with a numeric user id Co-Authored-By: Claude Opus 5.5 --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a2f62ca..4205c7e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -56,6 +56,7 @@ COPY --from=build --chown=node:node /app ./ RUN mkdir -p data && chown node:node data \ && rm -rf /usr/local/lib/node_modules/npm /usr/local/lib/node_modules/corepack \ /usr/local/bin/npm /usr/local/bin/npx /usr/local/bin/corepack -USER node +# UID 1000 ist der Benutzer "node" des Basis-Images (numerisch, DL3066). +USER 1000:1000 EXPOSE 3000 3001 CMD ["node", "dist/server/index.js"]