I am trying to create an image for my angular application for running unit and e2e tests. I started from the ubuntu image and then installed the other components. My dockerfile has the following statements.
FROM ubuntu:focal-20201008 RUN apt update && apt install -y \ nginx \ nodejs \ npm \ && npm install -g @firstname.lastname@example.org \ && rm -rf /var/lib/apt/lists/*
When I build the image using
sridhar@sridhar-HP-Laptop-15-H:~/abui/$ docker build --tag abui .
I get the following message (last few lines pasted here)
npm WARN deprecated email@example.com: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated firstname.lastname@example.org: this library is no longer supported /usr/local/bin/ng -> /usr/local/lib/node_modules/@angular/cli/bin/ng > @email@example.com postinstall /usr/local/lib/node_modules/@angular/cli > node ./bin/postinstall/script.js The command '/bin/sh -c apt update && apt install -y nginx nodejs npm && npm install -g @firstname.lastname@example.org && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 1
P.S. I don't want to start from the node docker image as of now