You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I install grpc-tools in docker, installation fails. and this error is shown below.
Step 2/8 : RUN npm i -g grpc-tools
---> Running in 5fc27f4c60f3
/usr/local/bin/grpc_tools_node_protoc -> /usr/local/lib/node_modules/grpc-tools/bin/protoc.js
/usr/local/bin/grpc_tools_node_protoc_plugin -> /usr/local/lib/node_modules/grpc-tools/bin/protoc_plugin.js
> grpc-tools@1.6.6 install /usr/local/lib/node_modules/grpc-tools
> node-pre-gyp install
node-pre-gyp ERR! install error
node-pre-gyp ERR! stack Error: EPERM: operation not permitted, utime '/usr/local/lib/node_modules/grpc-tools/bin'
node-pre-gyp ERR! System Linux 4.9.125-linuxkit
node-pre-gyp ERR!command"/usr/local/bin/node""/usr/local/lib/node_modules/grpc-tools/node_modules/.bin/node-pre-gyp""install"
node-pre-gyp ERR! cwd /usr/local/lib/node_modules/grpc-tools
node-pre-gyp ERR! node -v v10.12.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.38
node-pre-gyp ERR! not ok
EPERM: operation not permitted, utime '/usr/local/lib/node_modules/grpc-tools/bin'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! grpc-tools@1.6.6 install: `node-pre-gyp install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the grpc-tools@1.6.6 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-10-30T20_10_13_507Z-debug.log
ERROR: Service 'node-server' failed to build: The command'/bin/sh -c npm i -g grpc-tools' returned a non-zero code: 1
This is my dockerfile.
FROM node:10.12.0
RUN npm i -g grpc-tools
RUN useradd --user-group --create-home admin
ENV HOME=/home/admin
WORKDIR $HOME/app
RUN npm config set save-prefix=''RUN chown -R admin:admin $HOME
USER admin
I tried, but I couldn't solve this problem😭
Reproduction steps
$ docker build
Environment
docker image: node:10.12.0
grpc-tools@1.6.6
The text was updated successfully, but these errors were encountered:
FROM node:10.12.0
RUN npm i -g grpc-tools --unsafe-perm
RUN useradd --user-group --create-home admin
ENV HOME=/home/admin
WORKDIR $HOME/app
RUN npm config set save-prefix=''
RUN chown -R admin:admin $HOME
USER admin
Problem description
When I install grpc-tools in docker, installation fails. and this error is shown below.
This is my dockerfile.
I tried, but I couldn't solve this problem😭
Reproduction steps
Environment
The text was updated successfully, but these errors were encountered: