Skip to content

Commit

Permalink
Create home directory for custom user
Browse files Browse the repository at this point in the history
We need the home directory so we can save the git.vshn.net host keys
when running commodore-renovate for tenant repos on git.vshn.net.
simu committed Jan 20, 2025
1 parent 128fc2f commit 713f76f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@ FROM base AS final
ENV NODE_ENV=production

# Setup real user for UID 1000 so ssh Git clones work
RUN useradd --no-create-home --no-user-group --gid 0 --uid 1000 renovate
RUN useradd --create-home --no-user-group --gid 0 --uid 1000 renovate

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

0 comments on commit 713f76f

Please sign in to comment.