FROM rust:latest AS install RUN apt-get -y update && apt-get -y upgrade && \ apt-get install -y --no-install-recommends \ python3 \ python3-pip \ python3-setuptools \ python3-wheel RUN echo "alias ll='ls -laGFh'" >> /root/.bashrc VOLUME ["/project"] WORKDIR /project # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # FROM install AS install-clang RUN wget -O clang-14.0.0.tgz "https://github.com/llvm/llvm-project/releases/download/llvmorg-14.0.0/clang+llvm-14.0.0-x86_64-linux-gnu-ubuntu-18.04.tar.xz" && \ tar xvfj clang-14.0.0.tgz -C /project/artifacts && \ rm clang-14.0.0.tgz RUN ls -la /project/artifacts