aboutsummaryrefslogblamecommitdiffstats
path: root/docker/16/Dockerfile
blob: 1c767ced5bd6ad9881dc6c9d85d8d3ca22fa1281 (plain) (tree)
1
2
3
4
5
6

                         


                                                                               
                                                                                                 






                                                     
                                                                                                           


                         
FROM debian:bullseye-slim

RUN apt update && apt upgrade -y
RUN apt install -y wget cmake git lsb-release software-properties-common gnupg2
RUN wget https://apt.llvm.org/llvm.sh && chmod +x ./llvm.sh && ./llvm.sh 16
RUN apt install -y llvm-16-dev libclang-common-16-dev libclang-16-dev clang-16 libclang-cpp16-dev

RUN git clone https://github.com/bloodstalker/cgrep \
      && cd cgrep \
      && git submodule init \
      && git submodule update \
      && mkdir build \
      && cd build \
      && cmake ../ -DLLVM_CONF=llvm-config-16 -DCMAKE_CXX_COMPILER=clang++-16 -DUSE_MONOLITH_LIBTOOLING=ON\
      && make

RUN rm -rf /var/apt/cache