Update Dockerfile
Browse files2 unmodified lines3456789101112131415161718192021222324252627282930313233343536373839404142434445462 unmodified linesENV DEBIAN_FRONTEND=noninteractiveENV HOSTNAME=Nobita# ---- Base packages (ONE shot, 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/*# ---- Install code-server ----RUN curl -fsSL https://code-server.dev/install.sh | sh# ---- Set root password (root/root) ----RUN echo "root:root" | chpasswd# ---- 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 /workspaceEXPOSE 7860 9090CMD bash -c "service dbus start && service libvirtd start && service cockpit start && code-server --bind-addr 0.0.0.0:7860 --auth none"2 unmodified lines3456789101112131415161718192021222324252627282930313233343536372 unmodified linesENV DEBIAN_FRONTEND=noninteractiveENV HOSTNAME=Nobita# ---- Install Everything in One Layer ----RUN apt-get update && apt-get install -y --no-install-recommends \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# ---- Root Login Setup ----RUN echo "root:root" | chpasswd && \rm -f /etc/cockpit/disallowed-users || trueWORKDIR /workspaceEXPOSE 7860 9090# ---- 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