diff --git a/Dockerfile b/Dockerfile
index d8682561fefe7ec91ab85c1ad4b1b0a1e19f230a..28341d6c6e8d8d715ebd711d1d769273dbee7114 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -20,4 +20,7 @@ RUN chmod +x install_rustup.sh
 RUN ./install_rustup.sh
 
 # Now act as `user`
-USER user
\ No newline at end of file
+USER user
+
+RUN export PATH="$HOME/.cargo/bin:$PATH"
+RUN cargo install rustfmt
\ No newline at end of file