Skip to content

Commit 146e7e0

Browse files
committed
fixed permission error with global installation
1 parent a620ba6 commit 146e7e0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,14 @@ 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 && \
14+
npm config set script-prepend-node-path true && \
1015
npm -g install @angular/cli && \
1116
npm -g install gulp && \
12-
npm -g install puppeteer && \
17+
npm install puppeteer && \
1318
npm -g install @sentry/cli && \
1419
npm install

0 commit comments

Comments
 (0)