From 7b95c92668f53b3e1974fc697a46dbca8eb81f56 Mon Sep 17 00:00:00 2001 From: Masaki Muranaka Date: Sun, 16 Jun 2019 17:44:14 +0900 Subject: [PATCH] Run `node-gyp install` before run `node-gyp rebuild`. Signed-off-by: Masaki Muranaka --- dockerfiles/remote-plugin-dotnet-2.2.105/Dockerfile | 3 ++- dockerfiles/theia/Dockerfile | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dockerfiles/remote-plugin-dotnet-2.2.105/Dockerfile b/dockerfiles/remote-plugin-dotnet-2.2.105/Dockerfile index 5d7bfe4f94..bdf311eb22 100644 --- a/dockerfiles/remote-plugin-dotnet-2.2.105/Dockerfile +++ b/dockerfiles/remote-plugin-dotnet-2.2.105/Dockerfile @@ -54,7 +54,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Install typescript@2.9.2 and node-gyp - && yarn global add typescript@2.9.2 node-gyp + && yarn global add typescript@2.9.2 node-gyp \ + && node-gyp install ENV HOME=/home/theia COPY --from=endpoint /home/theia /home/theia diff --git a/dockerfiles/theia/Dockerfile b/dockerfiles/theia/Dockerfile index ec4e4d9e10..cf1f4e0980 100644 --- a/dockerfiles/theia/Dockerfile +++ b/dockerfiles/theia/Dockerfile @@ -131,6 +131,7 @@ RUN adduser -D -S -u 1001 -G root -h ${HOME} -s /bin/bash theia \ && chmod 666 /etc/passwd /etc/group \ # Add yeoman, theia plugin generator and typescript (to have tsc/typescript working) && yarn global add yo @theia/generator-plugin@0.0.1-1540209403 typescript@2.9.2 \ + && node-gyp install \ && mkdir -p ${HOME}/.config/insight-nodejs/ \ && chmod -R 777 ${HOME}/.config/ \ # Disable the statistics for yeoman