瀏覽代碼

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
 FROM node:18-alpine AS builder
+RUN apk add --no-cache git
 WORKDIR /app
 WORKDIR /app
 RUN npm install -g pnpm@9.3.0
 RUN npm install -g pnpm@9.3.0
 COPY package.json pnpm-lock.yaml ./
 COPY package.json pnpm-lock.yaml ./