A simple app which will be built on Now using `Dockerfile` and served statically
Switch branches/tags
Clone or download
rauchg Update all files (#2)
* update all files

* better comments
Latest commit 2a5a222 Jul 16, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
pages Initial commit. Jul 8, 2018
.dockerignore Update all files (#2) Jul 16, 2018
.gitignore Initial commit. Jul 8, 2018
Dockerfile Update all files (#2) Jul 16, 2018
README.md Update README.md Jul 9, 2018
now.json Update now.json Jul 16, 2018
package.json Update all files (#2) Jul 16, 2018
yarn.lock Update all files (#2) Jul 16, 2018



This is a simple static web app created using Next.js.


You need to build the app locally and deploy it using now.
With the help of the docker, this app will be built inside now and deploy it as a static app.

How it works

  • The Next.js app is configured to export static HTML.
  • Then we've a simple Dockerfile which builds the Next.js app and export the static content into the /public directory.
  • The now.json file is used to set the type of this app as static. (Otherwise now CLI will think this as a typical docker app.)
  • Finally, you can deploy this app by simply invoking now. (Make sure to use the latest release of now.)

Works Best With GitHub

Now's static build support works really great with the GitHub integration.
You can send pull request to the app and Now will build the app and deploy it as a static app for each and every commit.

Checkout this pull request.

Try It Yourself

  • Clone or download this repository.
  • Download and install the latest Now app.
  • Simply Invoke the now command inside this repository.


  • Fork this repository.
  • Add the Now + GitHub integration to your GitHub organization.
  • Send a pull request to the forked repository.