From 8cddc811dad1b8e4f3f038e01608d65655541691 Mon Sep 17 00:00:00 2001 From: bmacnaughton Date: Sun, 21 Jul 2024 07:45:39 -0700 Subject: [PATCH] remove node user and references --- CHANGELOG.md | 4 ++++ centos7/Dockerfile | 6 +----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 43569b3..8fdb560 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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` diff --git a/centos7/Dockerfile b/centos7/Dockerfile index 1f736b8..e59807c 100644 --- a/centos7/Dockerfile +++ b/centos7/Dockerfile @@ -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 && \ @@ -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