Dockerfile 1.0 KB

123456789101112131415161718
  1. # Local dev backend: smartbotic-database + smartbotic-vectorapi from the release
  2. # .debs. Native builds are impossible on the Void dev host (protobuf 35 removed
  3. # a header the generated protos need), so the Debian 13 image is the only way to
  4. # run the real stack locally. The web UI is served by Vite in dev, not from here.
  5. FROM debian:13
  6. # adduser is needed by both postinst scripts; systemctl is not present in a
  7. # container, so a no-op shim lets the packages configure cleanly. The services
  8. # are started by the entrypoint instead.
  9. RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl adduser \
  10. && rm -rf /var/lib/apt/lists/* \
  11. && printf '#!/bin/sh\nexit 0\n' > /usr/bin/systemctl && chmod +x /usr/bin/systemctl
  12. COPY debs/ /tmp/debs/
  13. RUN apt-get update && apt-get install -y --no-install-recommends /tmp/debs/*.deb \
  14. && rm -rf /var/lib/apt/lists/* /tmp/debs
  15. COPY entrypoint.sh /usr/local/bin/entrypoint.sh
  16. RUN chmod +x /usr/local/bin/entrypoint.sh
  17. EXPOSE 8080
  18. ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]