Skip to content

Commit 48fa195

Browse files
committed
fix(ci): install git in Docker images for pnpm prepare
vite-plus's prepare hook (vp config) runs git rev-parse during pnpm install, which failed with 'git command not found' in the bookworm-slim images. Add git to the base stage so dependency install succeeds.
1 parent 1558f53 commit 48fa195

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

apps/api/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ FROM node:24-bookworm-slim AS base
22
ENV PNPM_HOME=/pnpm
33
ENV PATH=$PNPM_HOME:$PATH
44
ENV PNPM_STORE_DIR=/app/.pnpm-store
5+
RUN apt-get update && apt-get install -y --no-install-recommends git && rm -rf /var/lib/apt/lists/*
56
RUN corepack enable
67
WORKDIR /app
78

apps/web/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ FROM node:24-bookworm-slim AS base
22
ENV PNPM_HOME=/pnpm
33
ENV PATH=$PNPM_HOME:$PATH
44
ENV PNPM_STORE_DIR=/app/.pnpm-store
5+
RUN apt-get update && apt-get install -y --no-install-recommends git && rm -rf /var/lib/apt/lists/*
56
RUN corepack enable
67
WORKDIR /app
78

0 commit comments

Comments
 (0)