Skip to content

Commit 3917b6a

Browse files
committed
chore(dev): Dockerfile NPM regression bug workaround (avoid version 11.12.0) [skip ci]
1 parent 6afb50e commit 3917b6a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ RUN echo $CONTAINER_TIMEZONE && arch && uname &&\
3636
ruby-dev && gem i fpm -f && fpm --version &&\
3737
curl -fsSL https://deb.nodesource.com/setup_24.x | bash &&\
3838
apt-get install -y nodejs &&\
39-
npm install -g npm@11.x
39+
npm install -g npm@'<11.12.0'
40+
# https://github.com/npm/cli/issues/9133
4041

4142
# wget libreadline-dev
4243
# libc6 xdg-utils libatspi2.0-0 libuuid1 libsecret-1-0 libappindicator3-1
@@ -108,7 +109,10 @@ USER notroot
108109

109110
ARG BUST_CACHE
110111
RUN cd /THORIUM/ &&\
111-
npm i
112+
npm install --ignore-scripts --foreground-scripts &&\
113+
cd node_modules/electron &&\
114+
npm run postinstall &&\
115+
cd -
112116

113117
ARG BUST_CACHE
114118
RUN cd /THORIUM/ &&\

0 commit comments

Comments
 (0)