feat: switch container user to root and add welcome bootstrap for dev environment

- Change container user from 'ubuntu' to 'root' in Dockerfile and docker-compose config
- Set working directory to /home/retoor/projects/snek and inject SNEK_UID environment variable
- Add root password setup and copy terminal bootstrap files (entry script, .welcome.txt) into container image
- Refactor compose exec/start methods to capture stdout/stderr via pipes and handle empty output gracefully
- Remove strict returncode check in exec method, replacing with debug print for non-zero exits
This commit is contained in:
2025-06-10 23:21:21 +00:00
parent dd1c230681
commit dc0edf6058
5 changed files with 105 additions and 13 deletions
+6
View File
@@ -10,3 +10,9 @@ RUN chmod +x r
RUN mv r /usr/local/bin/r
RUN echo 'root:root' | chpasswd
COPY ./terminal /opt/bootstrap
COPY ./terminal /opt/snek
RUN cp -r ./root /opt/bootrap/root
COPY ./terminal/entry /usr/local/bin/entry