Skip to content

Latest commit

 

History

History
34 lines (29 loc) · 649 Bytes

File metadata and controls

34 lines (29 loc) · 649 Bytes

[Docker] react dev environment

Steps:

  • developing container:

    mkdir -p project
    cd .docker/
    ./docker-build.sh
    ./docker-run.sh
  • and if everything is successful we are running inside container. At this time we can run basic creation of React app commands:

    cd project/
    npx create-react-app .
    
    npm i ....
  • [OPTIONAL] we can override env variables in an .env file:

    PORT=3000
    DOMAIN=localhost
    PUBLIC_URL=http://localhost:3000
  • starting project inside container:

    npm start

    ==> http://localhost:3000/

Enjoy!