An example using Dockerfile to build and statically deploy a `create-react-app` application
Switch branches/tags
Nothing to show
Clone or download
Latest commit 8e1daf1 Jul 16, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
public initial commit Jul 16, 2018
src initial commit Jul 16, 2018
.dockerignore initial commit Jul 16, 2018
.gitignore initial commit Jul 16, 2018
Dockerfile initial commit Jul 16, 2018
README.md Update README.md Jul 16, 2018
now.json initial commit Jul 16, 2018
package.json initial commit Jul 16, 2018
yarn.lock initial commit Jul 16, 2018

README.md

This project was bootstrapped with Create React App.

It demonstrates deployment with Now as a static deployment built from a Dockerfile.

To create this project, we first ran:

npx create-react-app cra

Inside the cra directory, we added three files:

  • now.json to indicate that the deployment type is static
  • Dockerfile to build using Node.js and runnning yarn build as instructed by CRA
  • .dockerignore to make sure only the sources are given to Docker, and not artifacts like node_modules