feat(container): add ncurses, bind Ctrl+L to clear, and set container hostname

This commit is contained in:
kiskaadee committed 2026-10-15 02:01:19 -05:00
1 parent a612549e33
commit 956abecbae
2 files changed
+4 -1

No files matched your search

+3 -1
View File
@@ -22,12 +22,14 @@ RUN sed -i 's|https://alpha.de.repo.voidlinux.org|https://repo-default.voidlinux
tree \
shadow \
sudo \
ncurses \
&& xbps-remove -Ooy
# Create user 'kiskaadee' (UID 1000)
RUN useradd -m -u 1000 -s /bin/bash kiskaadee \
&& echo "kiskaadee ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers \
&& echo 'PS1="\u - void linux \w \$ "' >> /home/kiskaadee/.bashrc
&& echo 'PS1="\u - void linux \w \$ "' >> /home/kiskaadee/.bashrc \
&& echo "bind -x '\"\C-l\": clear'" >> /home/kiskaadee/.bashrc
# Set workspace directory
WORKDIR /home/kiskaadee/fds
+1
View File
@@ -20,6 +20,7 @@ echo "🚀 Entering $IMAGE_NAME container (workspace: $DATA_DIR)..."
# - Mount host data directory to /home/kiskaadee/fds for persistent work
# - Grant SYS_PTRACE and unconfined seccomp to allow strace / proc inspection of file descriptors
exec docker run --rm -it \
--hostname fds-lab \
--cap-add=SYS_PTRACE \
--security-opt seccomp=unconfined \
-v "$DATA_DIR:/home/kiskaadee/fds" \