diff --git a/mayhem/Dockerfile b/mayhem/Dockerfile index 5cca14dc..9cf875f4 100644 --- a/mayhem/Dockerfile +++ b/mayhem/Dockerfile @@ -2,16 +2,14 @@ FROM --platform=linux/amd64 ubuntu:22.04 as builder RUN apt-get update RUN DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential cmake -RUN DEBIAN_FRONTEND=noninteractive apt-get install -y clang COPY . /repo -# WORKDIR /repo/build -WORKDIR /repo -# RUN cmake .. -RUN clang++ harness.cpp utility/Process.cpp tools/*.cpp -fsanitize=fuzzer -o out -Iutility/ +WORKDIR /repo/build +RUN cmake .. +RUN make -j8 -# FROM ubuntu:22.04 as package -# COPY --from=builder /repo/build/cnip / -# COPY --from=builder /repo/build/C/* /deps/ -# COPY --from=builder /repo/build/common/* /deps/ -# ENV LD_LIBRARY_PATH=/deps +FROM ubuntu:22.04 as package +COPY --from=builder /repo/build/cnip / +COPY --from=builder /repo/build/C/* /deps/ +COPY --from=builder /repo/build/common/* /deps/ +ENV LD_LIBRARY_PATH=/deps \ No newline at end of file diff --git a/mayhem/Mayhemfile b/mayhem/Mayhemfile index d6d731b1..94610151 100644 --- a/mayhem/Mayhemfile +++ b/mayhem/Mayhemfile @@ -2,6 +2,4 @@ project: psychec target: cnip cmds: - - cmd: /repo/out - libfuzzer: true -image: ghcr.io/rnshah9/playground:psychec + - cmd: /cnip @@ \ No newline at end of file