Skip to content

Commit

Permalink
Add --prefer-offline option and revert pnpm to v7
Browse files Browse the repository at this point in the history
  • Loading branch information
raducristianpopa committed Aug 29, 2023
1 parent 6895e39 commit d3ff7b6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/auth/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM node:18-alpine AS base
WORKDIR /home/rafiki

RUN corepack enable
RUN corepack prepare pnpm@8.7.0 --activate
RUN corepack prepare pnpm@7.25.1 --activate
RUN apk add --no-cache \
python3 \
make \
Expand All @@ -25,6 +25,7 @@ RUN pnpm clean
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store \
pnpm install \
--recursive \
--prefer-offline \
--frozen-lockfile \
--prod \
| grep -v "cross-device link not permitted\|Falling back to copying packages from store"
Expand Down
3 changes: 2 additions & 1 deletion packages/backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM node:18-alpine AS base
WORKDIR /home/rafiki

RUN corepack enable
RUN corepack prepare pnpm@8.7.0 --activate
RUN corepack prepare pnpm@7.25.1 --activate
RUN apk add --no-cache \
python3 \
make \
Expand All @@ -25,6 +25,7 @@ RUN pnpm clean
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store \
pnpm install \
--recursive \
--prefer-offline \
--frozen-lockfile \
--prod \
| grep -v "cross-device link not permitted\|Falling back to copying packages from store"
Expand Down
3 changes: 2 additions & 1 deletion packages/frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM node:18-alpine AS base
WORKDIR /home/rafiki

RUN corepack enable
RUN corepack prepare pnpm@8.7.0 --activate
RUN corepack prepare pnpm@7.25.1 --activate
RUN apk add --no-cache \
python3 \
make \
Expand All @@ -24,6 +24,7 @@ RUN pnpm clean
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store \
pnpm install \
--recursive \
--prefer-offline \
--frozen-lockfile \
--prod \
| grep -v "cross-device link not permitted\|Falling back to copying packages from store"
Expand Down

0 comments on commit d3ff7b6

Please sign in to comment.