FROM node:20 # 🧰 Install basic tools RUN apt-get update && apt-get install -y \ git \ curl \ vim \ htop \ openssh-server \ && rm -rf /var/lib/apt/lists/* # 🔐 Configure SSH RUN mkdir -p /var/run/sshd \ && echo "root:devpassword" | chpasswd \ && sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config # 🧱 Set up workspace WORKDIR /workspace # 💻 Optional: Install VS Code Server # RUN curl -fsSL https://code-server.dev/install.sh | sh # 🚪 Start SSH and fallback to shell CMD service ssh start && bash