1FROM rust 2 3WORKDIR /usr/local/src/ 4RUN curl -s https://api.github.com/repos/y2z/monolith/releases/latest \ 5 | grep "tarball_url.*\"," \ 6 | cut -d '"' -f 4 \ 7 | wget -qi - -O monolith.tar.gz 8 9RUN tar xfz monolith.tar.gz \ 10 && mv Y2Z-monolith-* monolith \ 11 && rm monolith.tar.gz 12 13WORKDIR /usr/local/src/monolith 14RUN ls -a 15RUN make install 16 17WORKDIR /tmp 18CMD ["/usr/local/cargo/bin/monolith"] 19