---
title: "Discussion on \"How to deploy Next.js to EC2 Ubuntu Linux\" | Hashnode"
description: "Discussion on \"How to deploy Next.js to EC2 Ubuntu Linux\". How to Setup EC2 for Dockerized Next.js Deployment\nIntroduction\nNext.js is great serve-side oriented frontend framework that makes building SEO-friendly websites easier.\nDeploying it is trickier than it needs to be, I understand Vercel needs to make ..."
url: "https://hashnode.com/posts/how-to-deploy-nextjs-to-ec2-ubuntu-linux/6792c8b1a82a3b247113af13"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to deploy Next.js to EC2 Ubuntu Linux](https://blog.mahad.dev/how-to-deploy-nextjs-to-ec2-ubuntu-linux?utm_source=hashnode&utm_medium=feed)

How to Setup EC2 for Dockerized Next.js Deployment Introduction Next.js is great serve-side oriented frontend framework that makes building SEO-friendly websites easier. Deploying it is trickier than it needs to be, I understand Vercel needs to make ...

Jan 23, 2025 · 7 min read · blog.mahad.dev  
Read the article

-   [#nextjs](https://hashnode.com/tag/nextjs)
-   [#aws](https://hashnode.com/tag/aws)
-   [#ec2](https://hashnode.com/tag/ec2)
-   [#linux](https://hashnode.com/tag/linux)
-   [#nginx](https://hashnode.com/tag/nginx)
-   [#letsencrypt](https://hashnode.com/tag/letsencrypt)
-   [#certbot](https://hashnode.com/tag/certbot)
-   [#docker](https://hashnode.com/tag/docker)
-   [#dockerfile](https://hashnode.com/tag/dockerfile)
-   [#ubuntu](https://hashnode.com/tag/ubuntu)
-   [#ubuntu-2404](https://hashnode.com/tag/ubuntu-2404)
-   [#ubuntu-2404-lts](https://hashnode.com/tag/ubuntu-2404-lts)

## Written by

[Mahad Ahmed](https://hashnode.com/@techwithmahad)

@techwithmahad · Kenya

  
[View profile](https://hashnode.com/@techwithmahad)

Follow me on my FullStack shenanigans and learn with me through the mistakes I make

Mahad loves building mobile and web applications and is here to take you on a journey, filled with bad decisions and learning from mistakes, through this blog.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
