Deploy your React applications on the decentralized Akash Network. This template provides a basic setup for serving a production-ready React app using Nginx.
- A built React application (run
npm run buildin your React project to generate thebuildfolder)
-
Build your React app:
npm run build
-
Prepare your deployment:
- This template uses Nginx to serve static files.
- Upload your
buildfolder contents to the persistent storage at/usr/share/nginx/htmlduring deployment.
-
Deploy on Akash:
- Use the provided
deploy.yamlto deploy on Akash Network. - Access your React app at the exposed endpoint (port 80).
- Use the provided
- Port: 80
- Web Server: Nginx (Alpine)
- Storage: 128Mi (expand as needed for your app)
- For larger apps, increase storage and memory in
deploy.yaml. - To include your build files directly, create a custom Docker image based on
nginx:alpineand copy your build files to/usr/share/nginx/html.