Dockerfile.base 1.7 KB

123456789101112131415161718192021222324252627282930313233
  1. FROM debian:13-slim
  2. ARG REPO_USER
  3. ARG REPO_PASS
  4. ENV DEBIAN_FRONTEND=noninteractive
  5. RUN apt-get update && apt-get install -y --no-install-recommends \
  6. ca-certificates curl gnupg cmake ninja-build g++ pkg-config git \
  7. nlohmann-json3-dev libspdlog-dev libfmt-dev libssl-dev libsystemd-dev \
  8. protobuf-compiler libprotobuf-dev libgrpc++-dev protobuf-compiler-grpc \
  9. && rm -rf /var/lib/apt/lists/*
  10. # Note: the gRPC/protobuf dev packages above are required so that the cmake
  11. # config shipped by libsmartbotic-db-client-dev can resolve `find_dependency(gRPC
  12. # CONFIG)`. Without protobuf-compiler-grpc, trixie's gRPCTargets.cmake references
  13. # plugin files that aren't present and find_package fails fatally (before the
  14. # pkg-config fallback). Mirrors smartbotic-database's build base.
  15. # Node 22 for the web UI build (vite 7 needs node >=20.19/22).
  16. RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \
  17. && apt-get install -y --no-install-recommends nodejs \
  18. && rm -rf /var/lib/apt/lists/*
  19. # Smartbotics apt repo — provides libsmartbotic-db-client-dev (2.3.x).
  20. RUN curl -fsSL https://repository.smartbotics.ai/smartbotics-repo.gpg \
  21. | gpg --dearmor -o /usr/share/keyrings/smartbotics-repo.gpg \
  22. && printf 'machine repository.smartbotics.ai\nlogin %s\npassword %s\n' "$REPO_USER" "$REPO_PASS" \
  23. > /etc/apt/auth.conf.d/smartbotics.conf \
  24. && chmod 600 /etc/apt/auth.conf.d/smartbotics.conf \
  25. && echo "deb [signed-by=/usr/share/keyrings/smartbotics-repo.gpg] https://repository.smartbotics.ai trixie main" \
  26. > /etc/apt/sources.list.d/smartbotics.list \
  27. && apt-get update \
  28. && apt-get install -y --no-install-recommends libsmartbotic-db-client-dev \
  29. && rm -rf /var/lib/apt/lists/*