[chore]: copy lockfile and workspace config before pnpm install in Dockerfiles
This commit is contained in:
parent
7f536cb617
commit
ae159b3e7a
|
|
@ -16,7 +16,7 @@ RUN corepack enable && corepack prepare pnpm@latest --activate
|
|||
|
||||
WORKDIR /app
|
||||
|
||||
COPY frontend/package.json ./
|
||||
COPY frontend/package.json frontend/pnpm-lock.yaml* frontend/pnpm-workspace.yaml* ./
|
||||
RUN pnpm install
|
||||
|
||||
COPY frontend/ .
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ RUN corepack enable && corepack prepare pnpm@latest --activate
|
|||
|
||||
WORKDIR /app
|
||||
|
||||
COPY frontend/package.json ./
|
||||
COPY frontend/package.json frontend/pnpm-lock.yaml* frontend/pnpm-workspace.yaml* ./
|
||||
RUN pnpm install --frozen-lockfile
|
||||
|
||||
COPY frontend/ .
|
||||
|
|
|
|||
Loading…
Reference in New Issue