فهرست منبع

fix: Dockerfile builder 阶段安装 git,解决构建时 git rev-parse 失败

kinglee 2 هفته پیش
والد
کامیت
f672f47751
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      Dockerfile

+ 1 - 0
Dockerfile

@@ -1,4 +1,5 @@
 FROM node:18-alpine AS builder
+RUN apk add --no-cache git
 WORKDIR /app
 RUN npm install -g pnpm@9.3.0
 COPY package.json pnpm-lock.yaml ./