FROM debian:bullseye

RUN apt-get update
RUN apt-get install -y cmake
RUN apt-get install -y lcov
RUN apt-get install -y doxygen graphviz
RUN apt-get install -y clang-format-11 clang-tidy-11
RUN apt-get install -y python3-pip
RUN apt-get install -y git
RUN apt-get install -y curl

RUN apt-get install -y openjdk-11-jdk-headless


WORKDIR /
COPY doc/requirements.txt doc-requirements.txt
RUN pip3 install -r doc-requirements.txt
COPY requirements.txt build-requirements.txt
RUN pip3 install -r build-requirements.txt

COPY . /libcaosdb/
WORKDIR /libcaosdb
RUN git rev-parse HEAD > libcaosdb_commit
RUN rm -rf .git
