fix:更新cicd4
This commit is contained in:
parent
39b91338b0
commit
4f07f71d49
@ -8,14 +8,14 @@ RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
|
||||
# 安装编译工具:使用 build-base 元包(gcc/g++/make 等) + python3 + openssl
|
||||
RUN apk add --no-cache python3 build-base openssl && rm -rf /var/cache/apk/*
|
||||
|
||||
# 安装 pnpm 并配置镜像源,允许执行构建脚本
|
||||
# 安装 pnpm 并配置镜像源
|
||||
RUN npm install -g pnpm && \
|
||||
pnpm config set registry https://registry.npmmirror.com && \
|
||||
pnpm config set enable-pre-post-scripts true
|
||||
pnpm config set registry https://registry.npmmirror.com
|
||||
|
||||
# 复制依赖文件
|
||||
COPY package*.json pnpm-lock.yaml ./
|
||||
RUN pnpm install --frozen-lockfile
|
||||
# 使用 --config 参数允许执行构建脚本
|
||||
RUN pnpm install --frozen-lockfile --config.enable-pre-post-scripts=true
|
||||
|
||||
COPY . .
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user