github.com/anchore/syft@v1.4.2-0.20240516191711-1bec1fc5d397/syft/file/cataloger/executable/test-fixtures/elf/Dockerfile (about)

     1  FROM gcc:9.5.0
     2  
     3  RUN apt update -y && apt install -y clang cmake git make m4 pkg-config zlib1g-dev
     4  
     5  ## from https://github.com/runsafesecurity/selfrando/blob/tb-v0.4.2/docs/linux-build-instructions.md
     6  #RUN git clone https://github.com/runsafesecurity/selfrando.git && \
     7  #    export SR_ARCH=`uname -m | sed s/i686/x86/` && \
     8  #    cd selfrando && \
     9  #    cmake . -DSR_DEBUG_LEVEL=env -DCMAKE_BUILD_TYPE=Release -DSR_BUILD_LIBELF=1 \
    10  #      -DSR_ARCH=$SR_ARCH -DSR_LOG=console \
    11  #      -DSR_FORCE_INPLACE=1 -G "Unix Makefiles" \
    12  #      -DCMAKE_INSTALL_PREFIX:PATH=$PWD/out/$SR_ARCH
    13  #RUN cd selfrando && make -j`nprocs --all`
    14  #RUN cd selfrando && make install
    15  
    16  RUN curl -o /bin/checksec https://raw.githubusercontent.com/slimm609/checksec.sh/2.6.0/checksec && chmod +x /bin/checksec