Dockerizing an Angular application with Nodejs Postgres and NginX | dev and prod | step by step

Dockerizing an Angular application with Nodejs Postgres and NginX | dev and prod | step by step

Codeching

1 год назад

5,961 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@ousmanediouf9190
@ousmanediouf9190 - 13.12.2022 01:32

hello please could you help me please? i get this error : "failed to solve: failed to compute cache key: "/app/dist/client" not found: not found"
can i get a solution to fix it ? Thanks

Ответить
@codeching
@codeching - 13.10.2022 16:46

Additional information that I forgot to record:
- It's a very important note that in newer Angular versions you have to put "cli": { "analytics": false} into the angular.json to stop angular cli asking for collecting analytics, it could be disturbing when we build our application inside docker container.
- In docker-compose file at the volume section with the first line Docker will create an own volume where it stores the node_modules folder. With the second line we map everything from the outside server/client folders to inside the container to some folder. So the first line is an exception too from some point of view because the Docker will use the node_modules from it's own volume, not from the mapped one.

Ответить