Skip to content

Commit 578a369

Browse files
committed
fix(docker): fix yarn issue in docker
1 parent 647b379 commit 578a369

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ FROM node:20-bookworm AS dev
33
RUN apt-get update -y \
44
&& apt-get install -y --no-install-recommends \
55
git bash g++ make \
6-
&& rm -rf /var/lib/apt/lists/*
6+
&& rm -rf /var/lib/apt/lists/* \
7+
# NOTE: yarn > 1.22.19 breaks yarn-install invoked by pnpm
8+
&& npm install -g [email protected] [email protected] --force
79

8-
RUN corepack enable
10+
RUN npm install -g pnpm
911

1012
WORKDIR /code
11-
RUN git config --global --add safe.directory /code
1213

13-
COPY package.json pnpm-lock.yaml /code/
14-
RUN corepack prepare --activate
14+
RUN git config --global --add safe.directory /code

0 commit comments

Comments
 (0)