Skip to content

Commit 29397dd

Browse files
committed
fixed permission error with global installation
1 parent a620ba6 commit 29397dd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@ RUN apt-get update && apt-get install -y gconf-service libasound2 libatk1.0-0 li
66
libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 \
77
libnss3 lsb-release xdg-utils wget jq && apt-get autoremove -y
88

9+
RUN mkdir ~/.npm-global && \
10+
npm config set prefix '~/.npm-global' && \
11+
export PATH=~/.npm-global/bin:$PATH
12+
913
RUN npm config set cache -g ./.npm-cache && \
1014
npm -g install @angular/cli && \
1115
npm -g install gulp && \
12-
npm -g install puppeteer && \
16+
npm install puppeteer && \
1317
npm -g install @sentry/cli && \
1418
npm install

0 commit comments

Comments
 (0)