I found out that it is possible to build a rust image from scratch, this way the final docker image will be only 5mb instead of 1.2GB. I think it would be a good optimize for the rust image. I already made a pull request to do this.