Skip to content

Dockerfile to build an app generated by create-react-app implementing 'docker multi-stage build' using node and nginx.

License

Notifications You must be signed in to change notification settings

jonathanpalma/docker-react-app-multi-stage-node-nginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-react-app-multi-stage-node-nginx License: MIT

Dockerfile to build a react app generated (ideally) by create-react-app implementing docker multi-stage build using node and nginx.

Requirements

  • Docker 17.05 or higher on the daemon and client.

Folder structure

Make sure you add your nginx.conf under server/nginx.conf

  ├── public/
  ├── node_modules/
+ ├── server/
+ │   ├── nginx.conf
  ├── src/
+ ├── .dockerignore
  ├── .gitignore
+ ├── Dockerfile
+ ├── Makefile
  └── package.json

TODO

  • Improve documentation
  • Look for a better way to structure the project in order to make it easier to get started and reuse it

Contributing

Contribution guidelines

About

Dockerfile to build an app generated by create-react-app implementing 'docker multi-stage build' using node and nginx.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published