# Base development image with common tools FROM ubuntu:24.04 # Prevent interactive prompts during apt install ENV DEBIAN_FRONTEND=noninteractive # Install base tools RUN apt-get update && apt-get install -y \ curl \ wget \ git \ neovim \ ranger \ tmux \ htop \ tree \ jq \ ca-certificates \ && rm -rf /var/lib/apt/lists/* # Create a non-root user RUN useradd -m -s /bin/bash user WORKDIR /home/user # Install Node.js (needed for pi and many dev tools) RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \ && apt-get install -y nodejs \ && rm -rf /var/lib/apt/lists/* # Set up git configuration defaults RUN git config --global init.defaultBranch main \ && git config --global user.email "dev@headquarter.local" \ && git config --global user.name "Developer" USER user CMD ["/bin/bash"]