diff --git a/Dockerfile b/Dockerfile index 226da59..6d3bbc0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,6 +26,13 @@ RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg \ rm /etc/apt/sources.list.d/github-cli.list # Do the install in user-space +RUN useradd \ + --create-home \ + --shell /bin/zsh \ + --uid 1000 \ + --gid 1000 \ + --non-unique \ + codespace USER codespace WORKDIR /tmp/shakefu/home diff --git a/install/linux_amd64/02-brew b/install/linux_amd64/02-brew index 01a74bd..7bdd9cd 100644 --- a/install/linux_amd64/02-brew +++ b/install/linux_amd64/02-brew @@ -14,6 +14,8 @@ $RUN /bin/bash "$TMP" # picked up by dash hopefully if ! grep 'linuxbrew' /etc/profile; then $RUN echo 'PATH="/home/linuxbrew/.linuxbrew/bin:$PATH"' | sudo tee -a /etc/profile + (echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> "$HOME/.profile" + eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" fi # Linux homebrew does not have permissions for its lock files in this dir, so we