Skip to content

pwdelbloomboard/dockerreactjs-yarn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Video Demo

dockerreactjs.mp4

Prerequisites

  • Docker
  • React

Quick Install - Docker Version

  1. With terminal, navigate to "/app" - the folder with Dockerfile in it.
  2. Run in the '/app' directory:
$ docker build -t ps-container:dev .
  1. After image is built, run:
sudo docker run -it --rm \
-v ${PWD}:/app \
-v /app/node_modules \
-p 3001:3000 \
-e CHOKIDAR_USEPOLLING=true \
ps-container:dev

Running React Only

To run the react app only, without docker, navigate to the /app file and enter:

$ yarn start

Demo Deployment:

None at this time.

Notes

  • None at this time.

Change Image Tag

  • OK changed. Again.