FROM gcc:latest

RUN apt-get update && \
    apt-get install -y libcunit1 libcunit1-dev valgrind && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/*

WORKDIR /app

COPY Makefile .
COPY libStructCunit.a .
COPY /libCunit/ ./lib/


# Compile the code and run the tests using the Makefile
CMD ["make", "clean", "all", "valgrind"]
#CMD ["bash"]
