blob: 2fa0df891e67c1829591516b1526fb77cd314836 (
plain) (
tree)
|
|
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 apt.llvm.org/llvm.sh && chmod +x ./llvm.sh && ./llvm.sh 15
RUN apt install -y llvm-15-dev libclang-common-15-dev libclang-15-dev clang-15 libclang-cpp15-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-15 -DCMAKE_CXX_COMPILER=clang++-15 -DUSE_MONOLITH_LIBTOOLING=ON\
&& make
RUN rm -rf /var/apt/cache
|