https://github.com/dgonzo27/react-docker-azure
React app packaged using Docker + Nginx and deployable to Azure
https://github.com/dgonzo27/react-docker-azure
azure docker nginx react
Last synced: 3 months ago
JSON representation
React app packaged using Docker + Nginx and deployable to Azure
- Host: GitHub
- URL: https://github.com/dgonzo27/react-docker-azure
- Owner: dgonzo27
- Created: 2021-08-17T20:58:45.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-17T21:07:13.000Z (almost 5 years ago)
- Last Synced: 2025-03-15T20:42:02.182Z (over 1 year ago)
- Topics: azure, docker, nginx, react
- Language: Dockerfile
- Homepage:
- Size: 179 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-docker-azure
watch the demo at [https://youtu.be/HCPmNbFW9sQ](https://youtu.be/HCPmNbFW9sQ)
## getting started (for intel based machines)
1. install node modules:
```sh
npm install
```
2. build the docker container:
```sh
docker build -t /react-docker-azure:latest .
```
3. run the docker container:
```sh
docker run -p 3000:80 /react-docker-azure:latest
```
4. navigate to:
```sh
http://localhost:3000
```
5. deploy:
```sh
docker push /react-docker-azure:latest
```
## getting started (for m1 macs or arm based machines)
1. install node modules:
```sh
npm install
```
2. build the docker container:
```sh
docker build -f Dockerfile.arm --platform=linux/amd64 -t /react-docker-azure:latest .
```
3. run the docker container
```sh
docker run -p 3000:80 /react-docker-azure:latest
```
4. navigate to:
```sh
http://localhost:3000
```
5. deploy:
```sh
docker push /react-docker-azure:latest
```