Test / Dockerfile
nobitaty55's picture
Update Dockerfile
a3dff93 verified
raw
history blame
764 Bytes
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
ENV 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 || true
WORKDIR /workspace
EXPOSE 7860 9090
# ---- Startup Script ----
CMD bash -c "\
service dbus start && \
service cockpit start && \
code-server --bind-addr 0.0.0.0:7860 --auth none"