I tested debian:bullseye-slim, debian:11-slim, and ubuntu:22.04 - none have git installed.
A cleaner way to do this (less bloat) is to update your local copy of Dockerfile and add git to the apt-get install list. The downside is that this fill will get overwritten next time you pull from the git repo.
This is more of a note, potential doc update.
EDIT: I should clarify this only impacts if you're installing the development version direct from git.
During an setup of netbox 3.6.4 in docker, I got an error that a git was not installed.
I worked around this by adding a line in Dockerfile-Plugins
I tried to figure out when this went away. I found two commits of interest:
June 10th, 2022 they moved from arch to debian which explicitly drops the git package.
Then in July 19th, 2022 they moved from debian to ubuntu.
I tested debian:bullseye-slim, debian:11-slim, and ubuntu:22.04 - none have git installed.
A cleaner way to do this (less bloat) is to update your local copy of Dockerfile and add git to the apt-get install list. The downside is that this fill will get overwritten next time you pull from the git repo.