From f3c516821386a41dbed2e9c825f6c152d89fba3f Mon Sep 17 00:00:00 2001 From: Simon Gerber Date: Mon, 20 Jan 2025 11:48:49 +0100 Subject: [PATCH] Correctly set `HOME` environment variable for custom user --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index aad59218..781d61ac 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,6 +29,7 @@ ENV NODE_ENV=production # Setup real user for UID 1000 so ssh Git clones work RUN useradd --create-home --no-user-group --gid 0 --uid 1000 renovate +ENV HOME=/home/renovate COPY --from=tsbuild /usr/src/app/bin bin COPY --from=tsbuild /usr/src/app/node_modules node_modules