code
code copied to clipboard
ch6: particles: working Dockerfile to see graphical output
Update Dockerfile:
a. to Rust 1.66 (current stable release)
b. to fix Cargo.lock cleanup ([[ ]] is bash built in only, not available)
c. install necessary X11 dependencies to actually run
d. fix the CMD to refer to the actual built filename (and path)
And also provide examples of how to build and run it, so that, at least from an Ubuntu 20.04 LTS host, it is actually possible to see the graphical output.
X11 library dependencies determined interactively, from an Ubuntu 20.04 LTS host; may not be the optional set, particularly with newer host distros moving increasingly to Wayland only.