In this tutorial we are going through how to generate a Docker image for a Rust project, using web framework Rocket, with GitHub Actions.
It’s very straight forward. But I will go step by step here in case you haven’t touched Docker or GitHub Actions before.
Initialize Rust project
First we need to create a repo on GitHub and clone the repo:

git clone <your repo>
Then we are going to initialize a Rust binary project: