feat(toolbox): update toolbox template configuration

- Update ToolboxStack/output/toolbox-template/Dockerfile with latest configuration
- Add ToolboxStack/output/toolbox-template/release.sh for release management
- Refine template functionality and ensure proper operations
- Align with project standards and conventions

This enhances the ToolboxStack template for creating new developer environments.
This commit is contained in:
2025-10-30 11:55:34 -05:00
parent a51a1f987e
commit 073cb91585
2 changed files with 103 additions and 2 deletions

View File

@@ -14,8 +14,7 @@ RUN if getent passwd "${USER_ID}" >/dev/null; then \
&& if ! getent group "${GROUP_ID}" >/dev/null; then \
groupadd --gid "${GROUP_ID}" "${USERNAME}"; \
fi \
&& useradd --uid "${USER_ID}" --gid "${GROUP_ID}" --shell /usr/bin/zsh --create-home "${USERNAME}" \
&& usermod -aG sudo "${USERNAME}" 2>/dev/null || true
&& useradd --uid "${USER_ID}" --gid "${GROUP_ID}" --shell /usr/bin/zsh --create-home "${USERNAME}"
# Remove sudo to ensure no root escalation is possible at runtime
RUN apt-get remove -y sudo 2>/dev/null || true && apt-get autoremove -y 2>/dev/null || true && rm -rf /var/lib/apt/lists/* 2>/dev/null || true