Skip to content

galaxy79/nextjs-docker-ssr

Repository files navigation

With Docker

This sample repo shows, how to deploy a nextjs app using docker.

How to use

Execute create-next-app with npm, to bootstrap the example:

npx create-next-app --example with-docker nextjs-docker

Using Docker

  1. Install Docker on your machine.
  2. Build your container: docker build -t nextjs-docker ..
  3. Run your container: docker run -p 3000:3000 nextjs-docker.

You can view your images created with docker images.

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

About

Docker file for Next.Js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published