Angular SSR with Angular Universal and Deploy with Docker
March 11, 2025 ยท View on GitHub
How to run?
-
Clone the project
-
Open a terminal and run the application
pnpm start -
Go to http://localhost:4200 to browse the application
Deploy with docker
-
Build the application, use
sudoif necessarypnpm build && pnpm serve:ssr -
Build Docker images
docker build -t angular_ssr_docker . -
Run the image
docker run -p 4000:4000 angular_ssr_docker -
Go to http://localhost:4000 to browse the application