Docker images showing when running: docker images | grep openmf.
Actual Behaviour
> [builder 9/10] RUN npm install:
2.922 npm ERR! code ENOENT
2.923 npm ERR! syscall open
2.923 npm ERR! path /usr/src/app/package.json
2.923 npm ERR! errno -2
2.925 npm ERR! enoent ENOENT: no such file or directory, open '/usr/src/app/package.json'
2.925 npm ERR! enoent This is related to npm not being able to find a file.
2.925 npm ERR! enoent
2.927
2.927 npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-07-25T10_39_38_417Z-debug-0.log
------
5 warnings found (use --debug to expand):
- FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 7)
- LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 21)
- LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 24)
- LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 25)
- LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 27)
Dockerfile:38
--------------------
36 | RUN npm install --location=global @angular/cli@14.2.12
37 |
38 | >>> RUN npm install
39 |
40 | RUN ng build --output-path=/dist $BUILD_ENVIRONMENT_OPTIONS
--------------------
ERROR: failed to solve: process "/bin/sh -c npm install" did not complete successfully: exit code: 254
Description
Can't build the docker image
Steps to Reproduce
Use the
Dockerfile
and runExpected Behaviour
Docker images showing when running:
docker images | grep openmf
.Actual Behaviour
Settings