build: reuse cached Alpine toolchain layer
This commit is contained in:
@@ -3,7 +3,7 @@ FROM node:20-alpine AS dependencies
|
||||
WORKDIR /app
|
||||
|
||||
# 原生依赖使用镜像内置 Node headers,避免构建时依赖外部 headers 下载站点。
|
||||
RUN apk add --no-cache python3 make g++
|
||||
RUN apk add --no-cache python3 make g++ wget
|
||||
ENV npm_config_nodedir=/usr/local
|
||||
|
||||
COPY package*.json ./
|
||||
|
||||
Reference in New Issue
Block a user