No access permission error with npm global install on docker image

前端 未结 5 1881
小鲜肉
小鲜肉 2021-01-31 09:19

I\'m trying to build a docker image with a global install of firebase-tools and angular-cli. I\'m building the same image for two versions of node: 6.x (LTS bor

5条回答
  •  误落风尘
    2021-01-31 09:38

    Please DO NOT set the user to root or use --unsafe-perm.

    Simply use the node user, provided with the current official (e.g. alpine) images.

    Commented Dockerfile below:

    FROM node:15.5-alpine
    
    # 

提交回复
热议问题