From a620ba6fb2546583307c6e9358c790a4cd3440d3 Mon Sep 17 00:00:00 2001 From: Markus Zimmermann Date: Wed, 30 Oct 2019 09:27:08 +0100 Subject: [PATCH 1/2] switch to npm --- Dockerfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9160a2e..437b6b6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,9 +6,9 @@ RUN apt-get update && apt-get install -y gconf-service libasound2 libatk1.0-0 li libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 \ libnss3 lsb-release xdg-utils wget jq && apt-get autoremove -y -RUN yarn config set cache-folder ./.yarn-cache && \ - yarn global add @angular/cli && \ - yarn global add gulp && \ - yarn global add puppeteer && \ - yarn global add @sentry/cli && \ - yarn install +RUN npm config set cache -g ./.npm-cache && \ + npm -g install @angular/cli && \ + npm -g install gulp && \ + npm -g install puppeteer && \ + npm -g install @sentry/cli && \ + npm install From 146e7e03a21c2798e692e981e34a2aabff4d85d1 Mon Sep 17 00:00:00 2001 From: Markus Zimmermann Date: Wed, 30 Oct 2019 09:35:15 +0100 Subject: [PATCH 2/2] fixed permission error with global installation --- Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 437b6b6..ec387c8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,9 +6,14 @@ RUN apt-get update && apt-get install -y gconf-service libasound2 libatk1.0-0 li libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 \ libnss3 lsb-release xdg-utils wget jq && apt-get autoremove -y +RUN mkdir ~/.npm-global && \ + npm config set prefix '~/.npm-global' && \ + export PATH=~/.npm-global/bin:$PATH + RUN npm config set cache -g ./.npm-cache && \ + npm config set script-prepend-node-path true && \ npm -g install @angular/cli && \ npm -g install gulp && \ - npm -g install puppeteer && \ + npm install puppeteer && \ npm -g install @sentry/cli && \ npm install