mirror of
https://github.com/bookorbit/bookorbit.git
synced 2026-11-03 00:11:37 -06:00
chore: speed up Docker builds
- drop arm64/QEMU — build amd64 only - add pnpm store cache mounts to client and server install steps
This commit is contained in:
+4
-2
@@ -8,7 +8,8 @@ WORKDIR /app
|
||||
COPY package.json pnpm-workspace.yaml pnpm-lock.yaml ./
|
||||
COPY packages/ packages/
|
||||
COPY client/package.json ./client/
|
||||
RUN pnpm install --filter client... --frozen-lockfile
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store \
|
||||
pnpm install --filter client... --frozen-lockfile
|
||||
|
||||
COPY client/ ./client/
|
||||
RUN pnpm --filter client run build-only
|
||||
@@ -21,7 +22,8 @@ WORKDIR /app
|
||||
COPY package.json pnpm-workspace.yaml pnpm-lock.yaml ./
|
||||
COPY packages/ packages/
|
||||
COPY server/package.json ./server/
|
||||
RUN pnpm install --filter server... --frozen-lockfile
|
||||
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store \
|
||||
pnpm install --filter server... --frozen-lockfile
|
||||
|
||||
COPY server/ ./server/
|
||||
RUN pnpm --filter server run build
|
||||
|
||||
Reference in New Issue
Block a user