fix: add git to Docker build image for lefthook

lefthook install requires git, which is missing from node:22-alpine
This commit is contained in:
向宁 2026-05-17 19:26:06 +08:00
parent 755517a068
commit 4afcf639dd

View File

@ -1,6 +1,7 @@
FROM node:22-alpine AS build
WORKDIR /app
RUN apk add --no-cache git
RUN corepack enable && corepack prepare pnpm@10 --activate
COPY pnpm-lock.yaml pnpm-workspace.yaml package.json ./