I would like to create a Docker image with a Rust/cargo binary such that all users can use said binary. This successfully builds the image
FROM ubuntu:jammy
RUN apt-get --yes install cargo
RUN cargo install oxipng
ENV PATH="${PATH}:/root/.cargo/bin"
RUN oxipng --help
but when using it, /root/.cargo/bin
is not in the path.
How can I add the path to the default system $PATH
?