luanlmd / docker-react-seed

development and production environment for reactjs in docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker React Seed

Elegant project structure for React development and deploy inside a docker environment

Create React App

This command will create the app folder and initialize the react app

./console.sh create-react-app

Run yarn

Run yarn inside the dev container

./console.sh yarn add whateva

Development build

Just use docker-compose for it

docker-compose up

Production build

./console.sh build

Run production build

./console.sh run

Extract production build for static hosting

This will extract the build from the docker image into the 'build' folder

./console.sh extract

About

development and production environment for reactjs in docker


Languages

Language:Shell 66.6%Language:Dockerfile 33.4%