diff --git a/.github/Dockerfile-crux-llvm b/.github/Dockerfile-crux-llvm index 02d65bc54..d8936966e 100644 --- a/.github/Dockerfile-crux-llvm +++ b/.github/Dockerfile-crux-llvm @@ -86,6 +86,7 @@ RUN cp -r c-src /usr/local/ RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \ locale-gen +USER crux-llvm ENV LD_LIBRARY_PATH=/usr/local/lib ENV CLANG=clang-${LLVM_VER} ENV LLVM_LINK=llvm-link-${LLVM_VER} diff --git a/.github/Dockerfile-crux-mir b/.github/Dockerfile-crux-mir index ea90acfb7..0eff391c2 100644 --- a/.github/Dockerfile-crux-mir +++ b/.github/Dockerfile-crux-mir @@ -78,7 +78,9 @@ FROM ubuntu:22.04 USER root RUN apt-get update && \ apt-get install -y \ - libgmp10 zlib1g libcurl4 + libgmp10 zlib1g libcurl4 \ + # A C toolchain (needed to build crates that require a C compiler) + clang ARG DIR=/crux-mir COPY --from=mir_json /usr/local/cargo /usr/local/cargo @@ -89,6 +91,7 @@ RUN mkdir -p ${DIR}/workspace WORKDIR ${DIR}/workspace +USER crux-mir ENV CARGO_HOME=/usr/local/cargo \ RUSTUP_HOME=/usr/local/rustup \ CRUX_RUST_LIBRARY_PATH=/crux-mir/rlibs \