chore: optimize Dockerfile by using cache for pnpm installation to improve build performance
Some checks failed
Deploy with Docker Compose / deploy (push) Has been cancelled

This commit is contained in:
Julien Froidefond
2025-12-13 12:13:49 +01:00
parent 8e5c60a684
commit c300e1d7a6

View File

@@ -12,7 +12,8 @@ WORKDIR /app
# Copy package files
COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile
RUN --mount=type=cache,id=pnpm-store,target=/root/.local/share/pnpm/store \
pnpm install --frozen-lockfile
# Rebuild the source code only when needed
FROM base AS builder