Merge pull request #9 from cpfarhood/fix/app-user-shell

fix: set app user shell to /bin/bash so VSCode terminals work
This commit was merged in pull request #9.
This commit is contained in:
2026-02-20 07:51:35 -05:00
committed by GitHub
2 changed files with 9 additions and 1 deletions
+3 -1
View File
@@ -58,9 +58,11 @@ RUN groupadd -g 1000 user && \
RUN mkdir -p /workspace && \
chown -R user:user /workspace
# Copy startup script
# Copy startup scripts
COPY --chmod=755 scripts/startapp.sh /startapp.sh
COPY --chmod=755 scripts/init-repo.sh /usr/local/bin/init-repo
# Fix app user shell after baseimage-gui creates it at runtime
COPY --chmod=755 scripts/cont-init-user.sh /etc/cont-init.d/20-fix-user-shell.sh
# Set working directory
WORKDIR /workspace
+6
View File
@@ -0,0 +1,6 @@
#!/bin/sh
# Fix the app user (UID 1000) created by baseimage-gui at runtime.
# baseimage-gui sets shell=/sbin/nologin and home=/dev/null, which
# prevents VSCode from opening terminals.
usermod -s /bin/bash app
usermod -d /home/user app