Skip to content

Commit a04401e

Browse files
committed
fix(ci): copy pnpm-workspace.yaml before pnpm fetch in Dockerfiles to respect minimumReleaseAgeExclude
1 parent d3efbb5 commit a04401e

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

docker/backend.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ RUN corepack enable && corepack prepare pnpm@latest --activate
1717

1818
WORKDIR /app
1919

20-
COPY pnpm-lock.yaml ./
20+
COPY pnpm-lock.yaml pnpm-workspace.yaml ./
2121
RUN pnpm fetch
2222

2323
COPY . .

docker/base.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ RUN chown node:node /app
1818
USER node
1919

2020
# Install dependencies using pnpm fetch for caching
21-
COPY --chown=node:node pnpm-lock.yaml ./
21+
COPY --chown=node:node pnpm-lock.yaml pnpm-workspace.yaml ./
2222
RUN pnpm fetch
2323

2424
# Only copy manifest files needed for installation, NOT source code

docker/frontend.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ ENV VITE_S3_ENDPOINT=$VITE_S3_ENDPOINT
2424

2525
WORKDIR /app
2626

27-
COPY pnpm-lock.yaml ./
27+
COPY pnpm-lock.yaml pnpm-workspace.yaml ./
2828
RUN pnpm fetch
2929

3030
COPY . .

docker/queue-consumer.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ RUN corepack enable && corepack prepare pnpm@latest --activate
2121

2222
WORKDIR /app
2323

24-
COPY pnpm-lock.yaml ./
24+
COPY pnpm-lock.yaml pnpm-workspace.yaml ./
2525
RUN pnpm fetch
2626

2727
COPY . .

0 commit comments

Comments
 (0)