We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64774e3 commit 0ba29f2Copy full SHA for 0ba29f2
Dockerfile
@@ -10,13 +10,17 @@ WORKDIR /app
10
# 安装必要的系统依赖(例如 CA 证书)
11
RUN apk add --no-cache ca-certificates && update-ca-certificates
12
13
+ENV NODE_OPTIONS="--dns-result-order=ipv4first --use-openssl-ca"
14
+ENV SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt
15
+
16
# 阶段2:构建应用程序
17
FROM base AS builder
18
19
WORKDIR /app
20
21
# 复制依赖文件
22
COPY package.json yarn.lock ./
23
+RUN yarn config set cafile /etc/ssl/certs/ca-certificates.crt
24
25
# 配置镜像源
26
ARG REGISTRY_LIST="https://registry.npmmirror.com/ https://registry.npmjs.org/ https://registry.yarnpkg.com/"
0 commit comments