Skip to content

Commit

Permalink
Merge pull request #377 from projectsyn/fix/env-home
Browse files Browse the repository at this point in the history
Correctly set `HOME` environment variable for custom user
  • Loading branch information
simu authored Jan 20, 2025
2 parents 146f09e + f3c5168 commit 46fda40
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 46fda40

Please sign in to comment.