|
@@ -145,9 +145,12 @@ ENV GOPROXY="https://goproxy.io,direct"
|
|
|
# install nodejs20
|
|
|
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
|
|
|
RUN apt-get install -y nodejs
|
|
|
-RUN npm config set registry http://registry.npm.taobao.org --global
|
|
|
-# npm config set ELECTRON_MIRROR https://npmmirror.com/mirrors/electron/ --global &&\
|
|
|
-# npm config set ELECTRON_BUILDER_BINARIES_MIRROR https://npmmirror.com/mirrors/electron-builder-binaries/ --global
|
|
|
+RUN echo '\n\
|
|
|
+ registry=http://registry.npm.taobao.org \n\
|
|
|
+ sass_binary_site=https://npmmirror.com/mirrors/node-sass/ \n\
|
|
|
+ electron_mirror=https://npmmirror.com/mirrors/electron/ \n\
|
|
|
+ ELECTRON_BUILDER_BINARIES_MIRROR=https://npmmirror.com/mirrors/electron-builder-binaries/ \n\
|
|
|
+ ' > ~/.npmrc
|
|
|
RUN npm install -g yarn pnpm serve
|
|
|
|
|
|
LABEL email="liuyuqi<liuyuqi.gov@msn.cn>"
|