Skip to content

Commit

Permalink
Merge pull request #378 from projectsyn/fix/container-user
Browse files Browse the repository at this point in the history
Switch to using UID 12021 of user `ubuntu`
  • Loading branch information
simu authored Jan 20, 2025
2 parents 46fda40 + 359c8a8 commit 16e5575
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ FROM base AS final

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 Expand Up @@ -76,4 +72,4 @@ RUN set -ex; \
ln -sf /usr/src/app/bin/index.js /usr/local/bin/renovate;
CMD ["renovate"]

USER 1000
USER 12021

0 comments on commit 16e5575

Please sign in to comment.