https://github.com/jonathanpalma/docker-react-app-multi-stage-node-nginx
Dockerfile to build an app generated by create-react-app implementing 'docker multi-stage build' using node and nginx.
https://github.com/jonathanpalma/docker-react-app-multi-stage-node-nginx
create-react-app docker docker-image multi-stage-build nginx node nodejs react reactjs server
Last synced: 3 months ago
JSON representation
Dockerfile to build an app generated by create-react-app implementing 'docker multi-stage build' using node and nginx.
- Host: GitHub
- URL: https://github.com/jonathanpalma/docker-react-app-multi-stage-node-nginx
- Owner: jonathanpalma
- License: mit
- Created: 2018-10-01T02:18:46.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-01T17:19:30.000Z (over 7 years ago)
- Last Synced: 2025-03-22T04:24:14.363Z (over 1 year ago)
- Topics: create-react-app, docker, docker-image, multi-stage-build, nginx, node, nodejs, react, reactjs, server
- Language: Makefile
- Size: 9.77 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-react-app-multi-stage-node-nginx [](https://opensource.org/licenses/MIT)
Dockerfile to build a react app generated (ideally) by create-react-app implementing [docker multi-stage build](https://docs.docker.com/develop/develop-images/multistage-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`
```diff
├── 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](https://github.com/jonathanpalma/docker-react-app-multi-stage-node-nginx/blob/master/CONTRIBUTING.md)