Update Dockerfile
Browse files2 unmodified lines345667891011121314151617181920212223242526278910111213141516171819202122232432332526272835363738394041293031324633343536372 unmodified linesENV DEBIAN_FRONTEND=noninteractiveENV HOSTNAME=Nobita
# ---- Base packages (ONE shot, ONE layer) ----# ---- Install Everything in One Layer ----RUN apt-get update && apt-get install -y --no-install-recommends \ ca-certificates \ curl \ wget \ git \ sudo \ docker.io \ htop \ btop \ neovim \ lsof \ qemu-system \ cloud-image-utils \ cockpit \ cockpit-machines \ qemu-kvm \ libvirt-daemon-system \ libvirt-clients \ bridge-utils \ virt-manager \ && rm -rf /var/lib/apt/lists/* ca-certificates \ curl \ wget \ git \ sudo \ dbus \ cockpit \ cockpit-machines \ htop \ btop \ neovim \ lsof \ && rm -rf /var/lib/apt/lists/*
# ---- Install code-server ----RUN curl -fsSL https://code-server.dev/install.sh | sh
# ---- Set root password (root/root) ----RUN echo "root:root" | chpasswd# ---- Root Login Setup ----RUN echo "root:root" | chpasswd && \ rm -f /etc/cockpit/disallowed-users || true
# ---- Allow root login in Cockpit ----RUN rm -f /etc/cockpit/disallowed-users || true
# ---- Add root to virtualization groups ----RUN usermod -aG libvirt,kvm root
# ---- Workspace ----WORKDIR /workspace
EXPOSE 7860 9090
CMD bash -c "service dbus start && service libvirtd start && service cockpit start && code-server --bind-addr 0.0.0.0:7860 --auth none"# ---- Startup Script ----CMD bash -c "\service dbus start && \service cockpit start && \code-server --bind-addr 0.0.0.0:7860 --auth none"Dockerfile+22-31