Skip to content

Commit 0085537

Browse files
committed
Remove yarn and use pnpm@9.6.0
1 parent b69bcef commit 0085537

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

dogfood/Dockerfile

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -210,17 +210,9 @@ RUN curl https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
210210
RUN source $NVM_DIR/nvm.sh && \
211211
nvm install $NODE_VERSION && \
212212
nvm use $NODE_VERSION
213-
214-
RUN apt-get update && \
215-
# Node.js (from nodesource) and Yarn (from yarnpkg)
216-
apt-get install --yes --quiet \
217-
nodejs yarn \
218-
# Install browsers for e2e testing
219-
google-chrome-stable microsoft-edge-beta && \
220-
# Pre-install system dependencies that Playwright needs. npx doesn't work here
221-
# for some reason. See https://github.com/microsoft/playwright-cli/issues/136
222-
npm i -g playwright@1.36.2 pnpm@^9 corepack && playwright install-deps && \
223-
npm cache clean --force
213+
ENV NODE_PATH=$NVM_DIR/v$NODE_VERSION/lib/node_modules
214+
ENV PATH=$NVM_DIR/v$NODE_VERSION/bin:$PATH
215+
RUN corepack use pnpm@9.6.0 && corepack cache clean
224216

225217
# Ensure PostgreSQL binaries are in the users $PATH.
226218
RUN update-alternatives --install /usr/local/bin/initdb initdb /usr/lib/postgresql/16/bin/initdb 100 && \

0 commit comments

Comments
 (0)