Skip to content

Instantly share code, notes, and snippets.

@alex179ohm
Last active March 11, 2020 16:34
Show Gist options
  • Save alex179ohm/b5d0a39e4bd7a76c17a8cfef65940f6b to your computer and use it in GitHub Desktop.
Save alex179ohm/b5d0a39e4bd7a76c17a8cfef65940f6b to your computer and use it in GitHub Desktop.
c2rust Dockerfile
FROM rust:1.41-slim
WORKDIR /app
RUN apt update
RUN apt install -y build-essential llvm-7 clang-7 libclang-7-dev cmake libssl-dev pkg-config python3 \
&& apt clean \
&& rm -rf /var/lib/apt/lists/*
RUN rustup install nightly-2019-12-05
RUN rustup component add --toolchain nightly-2019-12-05 rustfmt rustc-dev
RUN rustup show active-toolchain
# se da problemi con llvm-config (e ve li da)
ENV LLVM_LIB_DIR=/usr/lib/llvm-7/lib
RUN cargo +nightly-2019-12-05 install c2rust
# if you reach this point, congratulescions :-)
RUN echo congratulescions
# now run the image with
# docker run --rm -v ${PWD}:/app -e USER=$( id -u ) -e GROUP=$( id -g ) -it docker-c2rust bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment