FROM debian:11
ENV DEBIAN_FRONTEND noninteractive

RUN apt-get -y update && apt-get install -y --no-install-recommends curl gnupg2 ca-certificates

RUN apt-get -y update                       \
        && apt-get -y install --no-install-recommends \
            ssh-client                      \
            cmake                           \
            postgresql-server-dev-13        \
            pkg-config                      \
            build-essential                 \
            bash-completion                 \
            git                             \
            libpq-dev                       \
            libssl-dev                      \
            libboost-filesystem-dev         \
            libboost-program-options-dev    \
            libboost-system-dev             \
            libboost-test-dev               \
            libboost-thread-dev             \
            libevent-dev                    \
            libgrpc++1                      \
            libgrpc++-dev                   \
            libprotobuf-dev                 \
            libprotobuf23                   \
            nlohmann-json3-dev              \
            protobuf-compiler               \
            protobuf-compiler-grpc          \
        && apt-get -y clean                 \
        && rm -rf /var/lib/apt/lists/*
