Docker: cache deps layer for faster rebuilds (#605)

This commit is contained in:
Zach Knickerbocker
2026-01-09 15:23:06 -05:00
committed by GitHub
parent e8dbb350ae
commit c6fc7c2ea6
3 changed files with 47 additions and 2 deletions

View File

@@ -214,9 +214,15 @@ RUN curl -L https://github.com/steipete/wacli/releases/latest/download/wacli_Lin
# Add more binaries below using the same pattern
WORKDIR /app
COPY . .
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml .npmrc ./
COPY ui/package.json ./ui/package.json
COPY patches ./patches
COPY scripts ./scripts
RUN corepack enable
RUN pnpm install --frozen-lockfile
COPY . .
RUN pnpm build
RUN pnpm ui:install
RUN pnpm ui:build