react-docker-azure
watch the demo at https://youtu.be/HCPmNbFW9sQ
getting started (for intel based machines)
-
install node modules:
npm install
-
build the docker container:
docker build -t <DOCKERHUB_USERNAME>/react-docker-azure:latest .
-
run the docker container:
docker run -p 3000:80 <DOCKERHUB_USERNAME>/react-docker-azure:latest
-
navigate to:
http://localhost:3000
-
deploy:
docker push <DOCKERHUB_USERNAME>/react-docker-azure:latest
getting started (for m1 macs or arm based machines)
-
install node modules:
npm install
-
build the docker container:
docker build -f Dockerfile.arm --platform=linux/amd64 -t <DOCKERHUB_USERNAME>/react-docker-azure:latest .
-
run the docker container
docker run -p 3000:80 <DOCKERHUB_USERNAME>/react-docker-azure:latest
-
navigate to:
http://localhost:3000
-
deploy:
docker push <DOCKERHUB_USERNAME>/react-docker-azure:latest