DEV Community

Discussion on: First steps with Docker + Rust

Collapse
 
afonsojramos profile image
Afonso Jorge Ramos

What is this line for?

RUN rm ./target/release/deps/holodeck*

Collapse
 
rogertorres profile image
Roger Torres (he/him/ele) • Edited

Hi Afonso! This removes the binary previously built, so when the last build for release is executed, Docker uses all the cached dependencies and only the application itself (which, in this scenario is the only thing that was changed) is rebuilt.