openMF / web-app

Mifos X Web App is the revamped version of the Mifos X Community App built on top of the Fineract Platform leveraging the popular Angular framework.
https://openmf.github.io/web-app/
Mozilla Public License 2.0
228 stars 516 forks source link

Cannot build docker image #2155

Closed HarimbolaSantatra closed 1 week ago

HarimbolaSantatra commented 2 months ago

Description

Can't build the docker image

Steps to Reproduce

Use the Dockerfile and run

docker build -t openmf/web-app:latest .

Expected Behaviour

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

Settings