FROM debug/grep
ENV SUBJECT grep
RUN sudo apt-get install -y gdb valgrind
ADD scripts/prepareVM.sh .
ADD scripts/test.grep.54d55bba.patch .
ADD scripts/patch.grep.sh .
RUN ./prepareVM.sh $SUBJECT
RUN ./patch.grep.sh
RUN rm -rf /root/corerepo && rm /*.m4 && rm prepareVM.sh
WORKDIR /root/Desktop