Skip to content

Commit b490a09

Browse files
committed
Using nvm to install nodejs / npm
1 parent 17725d1 commit b490a09

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

Dockerfile

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,16 +118,13 @@ RUN \
118118

119119
# npm / nodejs
120120
RUN \
121+
sed -i 's/main$/main contrib non-free/g' /etc/apt/sources.list && apt-get update && \
121122
cd /tmp && \
123+
mkdir -p /tmp/playwright && cd /tmp/playwright && \
122124
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash && \
123125
\. "$HOME/.nvm/nvm.sh" && \
124126
nvm install 20 && \
125-
node -v && npm -v
126-
127-
# playwright
128-
RUN \
129-
sed -i 's/main$/main contrib non-free/g' /etc/apt/sources.list && apt-get update && \
130-
mkdir -p /tmp/playwright && cd /tmp/playwright && \
127+
node -v && npm -v && \
131128
npm install -g -D @playwright/test && \
132129
npx playwright install --with-deps chromium
133130

0 commit comments

Comments
 (0)