Simple node app to aws

In AWS

create EC2 instancecheckmod and sshsudo yum update -ysudo amazon-linux-extras install docker sudo services docker start

The create docker image and pusblish to docker hub

In local

docker build -t node-ex-1 — platform linux/amd64 .docker tag <locl_image_name> <docker_hub_image_name>docker logindocker push <docker_hub_image_name>

In aws EC2

docker run — rm -d -p 80:80 <docker_hub_image_name>
Then add http security rule to security group

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Thilina Dilshan
Thilina Dilshan

Written by Thilina Dilshan

Software developer , love to learn

No responses yet

Write a response