Skip to content

Commit

Permalink
remove node user and references
Browse files Browse the repository at this point in the history
  • Loading branch information
bmacnaughton committed Jul 21, 2024
1 parent d6c5ce0 commit 8cddc81
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [3.2.0] - 2024-07-21

- don't set user `node` or `/home/node` in `centos7`

## [3.1.0] - 2024-07-18

- rename `centos7-devtoolset7` to `centos7`
Expand Down
6 changes: 1 addition & 5 deletions centos7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ RUN sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo
# Using Node.js 16 here instead of LTS because >= 18 doesn't support CentOS 7. See:
# - https://nodejs.org/en/blog/announcements/v18-release-announce/#toolchain-and-compiler-upgrades
# - https://github.com/prebuild/prebuildify-cross/issues/13
RUN groupadd -g 1000 node && useradd -g 1000 -u 1000 -m node && \
groupadd -g 2000 travis && useradd -g 2000 -u 2000 -m travis && \
RUN groupadd -g 2000 travis && useradd -g 2000 -u 2000 -m travis && \
curl -fsSL https://rpm.nodesource.com/setup_16.x | bash - && \
yum install -y make nodejs python3 && \
sed -i 's/#!\/usr\/bin\/python/#!\/usr\/bin\/python2/' /usr/bin/yum && \
Expand All @@ -70,9 +69,6 @@ RUN groupadd -g 1000 node && useradd -g 1000 -u 1000 -m node && \
npm -v && \
python --version

USER node
ENV HOME=/home/node

# Disable npm update check
ENV NO_UPDATE_NOTIFIER=true
ENV npm_config_update_notifier=false
Expand Down

0 comments on commit 8cddc81

Please sign in to comment.