fix:更新cicd111
This commit is contained in:
parent
f3f5f3f58b
commit
60ef9adaff
@ -2,7 +2,6 @@
|
|||||||
FROM crpi-jlsdxetsdmy4ckxh.cn-shenzhen.personal.cr.aliyuncs.com/zsq_proxy/node:22-alpine AS build
|
FROM crpi-jlsdxetsdmy4ckxh.cn-shenzhen.personal.cr.aliyuncs.com/zsq_proxy/node:22-alpine AS build
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# 关键:切换 Alpine 软件源到阿里云(大幅提升下载速度)
|
|
||||||
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
|
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
|
||||||
|
|
||||||
RUN yarn config set registry https://registry.npmmirror.com && \
|
RUN yarn config set registry https://registry.npmmirror.com && \
|
||||||
@ -13,12 +12,9 @@ RUN yarn install --frozen-lockfile
|
|||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# 禁用 ESLint 和 TypeScript 检查
|
# 使用环境变量 + 构建命令
|
||||||
ENV NEXT_DISABLE_ESLINT=1
|
ENV NEXT_DISABLE_ESLINT=1
|
||||||
ENV NEXT_TELEMETRY_DISABLED=1
|
RUN yarn build --no-lint
|
||||||
|
|
||||||
# 构建(使用环境变量控制)
|
|
||||||
RUN yarn build
|
|
||||||
|
|
||||||
# 部署阶段
|
# 部署阶段
|
||||||
FROM crpi-jlsdxetsdmy4ckxh.cn-shenzhen.personal.cr.aliyuncs.com/zsq_proxy/node:22-alpine AS production
|
FROM crpi-jlsdxetsdmy4ckxh.cn-shenzhen.personal.cr.aliyuncs.com/zsq_proxy/node:22-alpine AS production
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user