/react-docker-azure

React app packaged using Docker + Nginx and deployable to Azure

Primary LanguageDockerfile

react-docker-azure

watch the demo at https://youtu.be/HCPmNbFW9sQ

getting started (for intel based machines)

  1. install node modules:

    npm install
  2. build the docker container:

    docker build -t <DOCKERHUB_USERNAME>/react-docker-azure:latest .
  3. run the docker container:

    docker run -p 3000:80 <DOCKERHUB_USERNAME>/react-docker-azure:latest
  4. navigate to:

    http://localhost:3000
  5. deploy:

    docker push <DOCKERHUB_USERNAME>/react-docker-azure:latest

getting started (for m1 macs or arm based machines)

  1. install node modules:

    npm install
  2. build the docker container:

    docker build -f Dockerfile.arm --platform=linux/amd64 -t <DOCKERHUB_USERNAME>/react-docker-azure:latest .
  3. run the docker container

    docker run -p 3000:80 <DOCKERHUB_USERNAME>/react-docker-azure:latest
  4. navigate to:

    http://localhost:3000
  5. deploy:

    docker push <DOCKERHUB_USERNAME>/react-docker-azure:latest