Categories

Friday, April 19, 2024
#919814419350 therichposts@gmail.com
Angular 13Angular 14Docker

Upload and Run Angular Application in a Docker Container

upload and run angular application in a docker container

Hello friends, welcome back to my blog. Today in this blog post, I am going to tell you, Upload and Run Angular Application in a Docker Container

Here is the tutorial working video:

Working Demo
upload and run angular application in a docker container
upload and run angular application in a docker container

Angular13 came and if you are new then you must check below link:

Angular13 Basic Tutorials


How to run angular project with docker?

  1. Create demo angular project – ng new demo-project
  2. Make angular build – ng build –prod
  3. Create dockerfile inside angular application
  4. Download docker software for window
  5. Now download docker wsl 2 from below link:
    1. https://docs.microsoft.com/en-us/windows/wsl/install-manual#step-4—download-the-linux-kernel-update-package
    2. https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi
  6. Run below command inside your angular project terminal
    1. docker build -t angular-docker-example .
  1. Open and run docker window software and Now you will our angular project build inside docker images section
  2. To run that project run with below commands on docker
    1. docker images (See images on docker)
    2. docker run -p 80:80 angular-docker-example

Okay guys this is it and I will appreciate that if you will tell your views for this post. Nothing matters if your views will be good or bad.

Jassa

Thanks

therichpost
the authortherichpost
Hello to all. Welcome to therichpost.com. Myself Ajay Malhotra and I am freelance full stack developer. I love coding. I know WordPress, Core php, Angularjs, Angular 14, Angular 15, Angular 16, Angular 17, Bootstrap 5, Nodejs, Laravel, Codeigniter, Shopify, Squarespace, jQuery, Google Map Api, Vuejs, Reactjs, Big commerce etc.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.