File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## [ 3.2.0] - 2024-07-21
4
+
5
+ - don't set user ` node ` or ` /home/node ` in ` centos7 `
6
+
3
7
## [ 3.1.0] - 2024-07-18
4
8
5
9
- rename ` centos7-devtoolset7 ` to ` centos7 `
Original file line number Diff line number Diff line change @@ -58,8 +58,7 @@ RUN sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo
58
58
# Using Node.js 16 here instead of LTS because >= 18 doesn't support CentOS 7. See:
59
59
# - https://nodejs.org/en/blog/announcements/v18-release-announce/#toolchain-and-compiler-upgrades
60
60
# - 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 && \
63
62
curl -fsSL https://rpm.nodesource.com/setup_16.x | bash - && \
64
63
yum install -y make nodejs python3 && \
65
64
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 && \
70
69
npm -v && \
71
70
python --version
72
71
73
- USER node
74
- ENV HOME=/home/node
75
-
76
72
# Disable npm update check
77
73
ENV NO_UPDATE_NOTIFIER=true
78
74
ENV npm_config_update_notifier=false
You can’t perform that action at this time.
0 commit comments