Explorar el Código

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

kinglee hace 2 semanas
padre
commit
f672f47751
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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 ./