react-xo-ava-app web app template
first things first...
$ npm i
run dev server
$ npm start
run tests
$ npm test
run linter
$ npm run lint
create build
$ npm run build
build
$ docker build -t react-xo-ava-app .
run
$ docker run --name react-xo-ava-app -p 8080:80 -d react-xo-ava-app
stop and remove
$ docker stop react-xo-ava-app && docker rm react-xo-ava-app
open with bash in container
For troubleshooting in the container, first change the docker file's FROM
to be
FROM openresty/openresty:centos
stop and remove
$ run --name react-xo-ava-app -p 8080:80 --rm -i -t react-xo-ava-app bash