Simplify boot sequence, remove terminal emblem, and introduce fastfetch script for sandbox login facts.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
7937879ace
commit
5f3ff481b4
24 files changed
+232
-240
No files matched your search
+8
-8
@@ -17,16 +17,16 @@ RUN rm -f /etc/dpkg/dpkg.cfg.d/docker \
|
||||
# shell configuration lives in /etc.
|
||||
# Setuid binaries are useless under no-new-privileges, so they are stripped
|
||||
# to keep the attack surface minimal even if that option is ever dropped.
|
||||
RUN useradd --uid 1000 --no-create-home --home-dir /home/guest --shell /bin/bash guest \
|
||||
&& mkdir /home/guest \
|
||||
RUN useradd --uid 1000 --no-create-home --home-dir /home/agent --shell /bin/bash agent \
|
||||
&& mkdir /home/agent \
|
||||
&& find / -xdev -perm /6000 -type f -exec chmod a-s {} +
|
||||
|
||||
COPY etc/ /etc/
|
||||
COPY --chmod=0755 bin/status /usr/local/bin/status
|
||||
COPY --chmod=0755 bin/ /usr/local/bin/
|
||||
|
||||
ENV PATH=/usr/local/bin:/usr/bin:/bin:/usr/games
|
||||
USER guest
|
||||
WORKDIR /home/guest
|
||||
# Startup files in the home directory belong to the content, so bash only
|
||||
# reads the system wide configuration.
|
||||
CMD ["/bin/bash", "--rcfile", "/etc/bash.bashrc", "-i"]
|
||||
USER agent
|
||||
WORKDIR /home/agent
|
||||
# Debian's bash always reads /etc/bash.bashrc. Startup files in the home
|
||||
# directory belong to the content, so an empty file replaces ~/.bashrc.
|
||||
CMD ["/bin/bash", "--rcfile", "/dev/null", "-i"]
|
||||
Reference in new issue
Block a user