Skip to content

Commit 46fda40

Browse files
authored
Merge pull request #377 from projectsyn/fix/env-home
Correctly set `HOME` environment variable for custom user
2 parents 146f09e + f3c5168 commit 46fda40

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ ENV NODE_ENV=production
2929

3030
# Setup real user for UID 1000 so ssh Git clones work
3131
RUN useradd --create-home --no-user-group --gid 0 --uid 1000 renovate
32+
ENV HOME=/home/renovate
3233

3334
COPY --from=tsbuild /usr/src/app/bin bin
3435
COPY --from=tsbuild /usr/src/app/node_modules node_modules

0 commit comments

Comments
 (0)