mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 17:20:30 +08:00
Docker 构建时添加 npm 镜像源
This commit is contained in:
parent
11943d0345
commit
a5e5e2b76a
@ -83,7 +83,8 @@ RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple &&
|
||||
|
||||
# https://stackoverflow.com/questions/57534295
|
||||
WORKDIR /root
|
||||
RUN npm install htmlhint -g \
|
||||
RUN npm config set registry https://registry.npmmirror.com \
|
||||
&& npm install htmlhint -g \
|
||||
&& npm install pug \
|
||||
&& npm install pug-cli -g \
|
||||
&& npm install @babel/eslint-parser -g
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user