35 lines
No EOL
715 B
Docker
35 lines
No EOL
715 B
Docker
FROM debian:trixie
|
|
|
|
# Install essential packages for a minimal bootable system
|
|
RUN apt-get update && apt-get install -y \
|
|
systemd \
|
|
dbus \
|
|
sudo \
|
|
systemd-sysv \
|
|
systemd-timesyncd \
|
|
network-manager \
|
|
openssh-server \
|
|
curl \
|
|
wget \
|
|
vim \
|
|
less \
|
|
htop \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Enable systemd services
|
|
RUN systemctl enable systemd-timesyncd
|
|
RUN systemctl enable NetworkManager
|
|
RUN systemctl enable ssh
|
|
|
|
# Create a default user
|
|
RUN useradd -m -s /bin/bash -G sudo user
|
|
RUN echo "user:password" | chpasswd
|
|
|
|
# Set up basic system configuration
|
|
RUN echo "debian-atomic" > /etc/hostname
|
|
|
|
# Clean up
|
|
RUN apt-get clean
|
|
|
|
# Set the default command
|
|
CMD ["/bin/bash"] |