diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7d08b99 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM ubuntu:20.04 + +WORKDIR /clang-bind +COPY . . + +RUN apt-get update && apt-get install -y python3-pip build-essential wget + +# Install libclang via development branch on https://apt.llvm.org/ +RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - +RUN echo 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-12 main' | tee -a /etc/apt/sources.list +RUN echo 'deb-src http://apt.llvm.org/focal/ llvm-toolchain-focal-12 main' | tee -a /etc/apt/sources.list +RUN apt-get install -y libclang-12-dev python3-clang-12 + +RUN pip install -r requirements.txt + +ENTRYPOINT [ "bash" ]