Skip to content

Instantly share code, notes, and snippets.

View ParthivPadariya's full-sized avatar
🎯
Focusing

Padariya Parthiv ParthivPadariya

🎯
Focusing
View GitHub Profile

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Create Free AWS Account

Create free AWS Account at https://aws.amazon.com/

2. Create and Lauch an EC2 instance and SSH into machine

I would be creating a t2.medium ubuntu machine for this demo.

@ParthivPadariya
ParthivPadariya / Dockerfile
Created March 31, 2024 20:42 — forked from piyushgarg-dev/Dockerfile
Docker In One Shot
FROM ubuntu
RUN apt-get update
RUN apt-get install -y curl
RUN curl -sL https://deb.nodesource.com/setup_18.x | bash -
RUN apt-get upgrade -y
RUN apt-get install -y nodejs
COPY package.json package.json
COPY package-lock.json package-lock.json