How to create Angular Universal Dockerfile and docker-compose.yml file? How to create Angular Universal Dockerfile and docker-compose.yml file? docker docker

How to create Angular Universal Dockerfile and docker-compose.yml file?


May be a little late but in your Dockerfile:

RUN npm run build:universal

You need to have a script in your package.json like this:

"build:universal": "ng build --prod && ng run jobnow:server:production"

There is also this line:

RUN npm run test:ssr

You can remove it or add another script like this:

"test:ssr": "run-p test:ssr:*"