vpicone / now-static-build-cra

An example using Dockerfile to build and statically deploy a `create-react-app` application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

An example using Dockerfile to build and statically deploy a `create-react-app` application


Languages

Language:JavaScript 71.5%Language:HTML 21.0%Language:CSS 5.8%Language:Dockerfile 1.7%