mirror of
https://github.com/vastxie/99AI.git
synced 2024-11-16 11:42:25 +08:00
commit
5c8c8ffc01
10
Dockerfile
10
Dockerfile
|
@ -7,16 +7,12 @@ COPY package.json ./
|
|||
# 使用腾讯源(国内服务器可取消下方注释以提升安装速度)
|
||||
# RUN npm config set registry https://mirrors.cloud.tencent.com/npm/
|
||||
|
||||
# 使用淘宝源(国内服务器可取消下方注释以提升安装速度)
|
||||
# RUN npm config set registry https://registry.npmmirror.com
|
||||
|
||||
# 如遇到提示网站证书无效,取消下方注释,禁止严格SS策略
|
||||
# RUN npm config set strict-ssl false
|
||||
|
||||
# 安装项目依赖
|
||||
RUN apk add --no-cache --virtual .build-deps git && \
|
||||
npm install --omit=dev && \
|
||||
apk del .build-deps
|
||||
# 使用淘宝源安装项目依赖(国内用户居多)
|
||||
RUN npm config set registry https://registry.npmmirror.com && \
|
||||
npm install --omit=dev
|
||||
|
||||
|
||||
# 运行阶段
|
||||
|
|
Loading…
Reference in New Issue
Block a user