Skip to content

Commit 8cddc81

Browse files
committed
remove node user and references
1 parent d6c5ce0 commit 8cddc81

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## [3.2.0] - 2024-07-21
4+
5+
- don't set user `node` or `/home/node` in `centos7`
6+
37
## [3.1.0] - 2024-07-18
48

59
- rename `centos7-devtoolset7` to `centos7`

centos7/Dockerfile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ RUN sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo
5858
# Using Node.js 16 here instead of LTS because >= 18 doesn't support CentOS 7. See:
5959
# - https://nodejs.org/en/blog/announcements/v18-release-announce/#toolchain-and-compiler-upgrades
6060
# - https://github.com/prebuild/prebuildify-cross/issues/13
61-
RUN groupadd -g 1000 node && useradd -g 1000 -u 1000 -m node && \
62-
groupadd -g 2000 travis && useradd -g 2000 -u 2000 -m travis && \
61+
RUN groupadd -g 2000 travis && useradd -g 2000 -u 2000 -m travis && \
6362
curl -fsSL https://rpm.nodesource.com/setup_16.x | bash - && \
6463
yum install -y make nodejs python3 && \
6564
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 && \
7069
npm -v && \
7170
python --version
7271

73-
USER node
74-
ENV HOME=/home/node
75-
7672
# Disable npm update check
7773
ENV NO_UPDATE_NOTIFIER=true
7874
ENV npm_config_update_notifier=false

0 commit comments

Comments
 (0)