forked from retoor/snek
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user