FROM debian:bookworm-slim # Avoid interactive prompts ENV DEBIAN_FRONTEND=noninteractive # Update and install Swiss Army Knife tools RUN apt-get update && apt-get install -y curl wget git jq unzip tar vim nano python3 python3-pip python3-venv build-essential iputils-ping dnsutils net-tools nodejs npm ffmpeg openssh-server sudo && rm -rf /var/lib/apt/lists/* # Install yq (binary release for latest version) RUN wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/bin/yq && chmod +x /usr/bin/yq # Setup SSH directory RUN mkdir /var/run/sshd # Create a user 'claw' with sudo access # Passwordless sudo allowed for friction-free automation RUN useradd -m -s /bin/bash claw && echo "claw ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers # Prepare volume mount point # Mount persistent storage here VOLUME /data RUN chown claw:claw /data # Set working directory to the persistent volume WORKDIR /data # Expose SSH port EXPOSE 22 # Start SSH daemon CMD ["/usr/sbin/sshd", "-D"]