This repository demonstrates dockerizing and deploying a Rust application to Back4app Containers.
To learn more, visit this article How to Deploy a Rust Application With Back4app
-
Install Docker (If you haven’t installed it already)
-
Build the docker image
docker build -t Rust-API .
-
Run the docker image as a container
docker run -p 8000:8000 Rust-API
-
Navigate to http://localhost:8000/ in your web browser to access the application
-
Push the application to a GitHub repository
-
Set Up Your Back4app Account
-
Create a Back4app CaaS application
-
Link your GitHub account to the Back4app application
-
Select the application’s repository
-
Deploy the application
Your Rust app will now be deployed on the Back4app container platform!