Installing npm packages on Astro docker


I’m in need of one specific npm package on Astronomer Airflow.

I got nodejs and npm themselves installed ok with the following rows in my Dockerfile:

FROM astronomerinc/ap-airflow:1.10.10-alpine3.10-onbuild
RUN apk add nodejs-npm

But both of the following rows result in permission errors (I also installed yarn successfully by including it in packages.txt)

RUN yarn global add vega-cli
RUN npm install -g vega-cli

Thank you for any assistance.