this the second part of dockerizing an angular 6 and spring boot app Part 1 here: http://dev.basharallabadi.com/2018/08/part-1-backend-docker-for-angular.html I followed this blog: https://mherman.org/blog/2018/02/26/dockerizing-an-angular-app/ so basically three steps: 1- create docker file 2- create docker compose 3- docker-compose build .. docker-compose up here is the files I'll be explaining to achive this: . 1- Dockerfile This docker file uses multi stage build, which means it uses multiple docker images to produce final image. why? because the image we need to build the angular app requires alot of dependencies that are not needed to run the app. in the first part of the docker file: - it starts based on a node image - prepares the app directory - copies package.json from the source code directory to the docker container directory - executes npm install which will install all node dependencies. - install angular cli globally (version 6) - copy
Blog about what I try or want to try.. while kids are sleeping !