Skip to content

Kay-Kang/nextjs-with-dockerfile

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

nextjs-with-dokerfile

bash script to auto processing (life changing)

bash ``` #!/bin/bash

install nginx

apt update

apt intall nginx -y

Update package information

sudo apt update

Install prerequisites

sudo apt install -y apt-transport-https ca-certificates curl software-properties-common

Add Docker's official GPG key

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

Set up the Docker repository

echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

Update package information again

sudo apt update

Install Docker Engine

sudo apt install -y docker-ce docker-ce-cli containerd.io

Start and enable Docker

sudo systemctl start docker sudo systemctl enable docker

Clone the repository

git clone https://github.com/Kay-Kang/nextjs-with-dockerfile.git

Navigate to the project directory

cd nextjs-with-dockerfile || exit

Build the Docker image

docker build -t ppuaweb:latest .

Run the container

docker run -d -p 3000:3000 --name my-app-container ppuaweb:latest

About

nextjs-with-dockerfile

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published