aboutsummaryrefslogtreecommitdiff
path: root/.config/lxc/builds/debian-bullseye11.dockerfile
diff options
context:
space:
mode:
Diffstat (limited to '.config/lxc/builds/debian-bullseye11.dockerfile')
-rw-r--r--.config/lxc/builds/debian-bullseye11.dockerfile19
1 files changed, 19 insertions, 0 deletions
diff --git a/.config/lxc/builds/debian-bullseye11.dockerfile b/.config/lxc/builds/debian-bullseye11.dockerfile
new file mode 100644
index 0000000..ea106fb
--- /dev/null
+++ b/.config/lxc/builds/debian-bullseye11.dockerfile
@@ -0,0 +1,19 @@
+FROM docker.io/library/debian:bullseye-slim@sha256:7c78fedca85eec82669ff06969250175edac0750cb883628dfe7be18cb906928
+
+RUN apt update
+
+RUN apt install --no-install-recommends --assume-yes \
+ init uuid-runtime neofetch vim-tiny iproute2 dhcpcd5 xauth htop
+
+RUN systemctl mask sys-kernel-config.mount sys-kernel-debug.mount systemd-journald-audit.socket
+
+RUN ln --symbolic --force bash /bin/sh
+
+RUN printf 'export TERM=linux\n' >> /etc/profile
+RUN printf 'neofetch\n' >> /etc/profile
+
+RUN printf '{ [ "$(whoami)" = "root" ] && export PS1='\''(debian) \[\\e[0;31m\]\W\[\\e[0m\] \[\\e[0;31m\]\$\[\\e[0m\] '\''; } || true\n' >> /etc/profile
+RUN printf '{ [ "$(whoami)" = "user" ] && export PS1='\''(debian) \[\\e[0;32m\]\W\[\\e[0m\] \[\\e[0;32m\]\$\[\\e[0m\] '\''; } || true\n' >> /etc/profile
+RUN printf 'id --user 1000 > /dev/null 2>&1 || { adduser user --uid 1000 --gecos user --disabled-password && printf ". ./etc/profile\n" >> /home/user/.bashrc; }\n' >> /etc/profile
+
+RUN usermod --password "$(uuidgen)" root