From 601d5cb2d0b0ec220cd41a2d8306778fa848fc1f Mon Sep 17 00:00:00 2001 From: Divyanshu Madan Date: Sun, 22 Aug 2021 03:37:04 +0530 Subject: [PATCH] [Dockerfile] add file --- Dockerfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Dockerfile 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" ]