Skip to content

Commit

Permalink
Correctly set HOME environment variable for custom user
Browse files Browse the repository at this point in the history
  • Loading branch information
simu committed Jan 20, 2025
1 parent 146f09e commit f3c5168
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 f3c5168

Please sign in to comment.