Skip to content

Commit

Permalink
ci(frontend): install git client while building docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
634750802 committed Jul 30, 2024
1 parent 593b583 commit d5d536c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ RUN pnpm i --frozen-lockfile

# 2. Rebuild the source code only when needed
FROM base AS builder
# Need git client to fetch git revision info
RUN apk add --no-cache git
WORKDIR /tidb.ai
COPY --from=deps /tidb.ai/frontend/node_modules ./frontend/node_modules
COPY --from=deps /tidb.ai/frontend/app/node_modules ./frontend/app/node_modules
Expand Down

0 comments on commit d5d536c

Please sign in to comment.