1
This commit is contained in:
parent
ff732d2643
commit
44b5a2f966
@ -4,6 +4,10 @@ FROM node:18-alpine as build-stage
|
|||||||
# 设置工作目录
|
# 设置工作目录
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
# 设置 npm 淘宝镜像源
|
||||||
|
RUN npm config set registry https://registry.npmmirror.com
|
||||||
|
RUN npm config set sass_binary_site https://npmmirror.com/mirrors/node-sass/
|
||||||
|
|
||||||
# 复制 package.json 和 package-lock.json (如果存在)
|
# 复制 package.json 和 package-lock.json (如果存在)
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user