-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Building the image demo-launcher fails:
#25 [stage-0 19/19] RUN npm install --global yarn
#25 0.269 /bin/sh: 1: npm: not found
...
Dockerfile:59
--------------------
57 | # Copy the UI code
58 | COPY --from=ghcr.io/eth-cscs/firecrest-ui /usr/server/app ./web-ui
59 | >>> RUN npm install --global yarn
60 |
61 |
--------------------
ERROR: failed to solve: process "/bin/sh -c npm install --global yarn" did not complete successfully: exit code: 127
It might be caused by apt showing npm as suggested package and by that skips installing the npm.
#10 [stage-0 4/19] RUN apt install -y nodejs
#10 0.400
#10 0.400 WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
#10 0.400
#10 0.404 Reading package lists...
#10 0.791 Building dependency tree...
#10 0.947 Reading state information...
#10 1.102 The following additional packages will be installed:
#10 1.102 libc-ares2 libicu72 libnode108 libuv1 node-acorn node-busboy
#10 1.103 node-cjs-module-lexer node-undici node-xtend nodejs-doc
#10 1.105 Suggested packages:
#10 1.105 npm
#10 1.162 The following NEW packages will be installed:
#10 1.163 libc-ares2 libicu72 libnode108 libuv1 node-acorn node-busboy
#10 1.164 node-cjs-module-lexer node-undici node-xtend nodejs nodejs-doc
#10 1.205 0 upgraded, 11 newly installed, 0 to remove and 1 not upgraded.
#10 1.205 Need to get 24.5 MB of archives.
What helped in my build was to add it to the RUN directive:
RUN apt install -y nodejs npm
Is it my mistake/environment issue?
Regards,
Marek
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels