Skip to content

Commit

Permalink
Fix homebrew permissions on enter
Browse files Browse the repository at this point in the history
  • Loading branch information
david committed Sep 8, 2024
1 parent 1d96dfa commit 85e31c5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion images/ubuntu/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,14 @@ RUN useradd -u "${USER_ID}" --create-home --shell /bin/bash --user-group linuxbr
echo 'linuxbrew ALL=(ALL) NOPASSWD:ALL' >>/etc/sudoers && \
su - linuxbrew -c 'mkdir ~/.linuxbrew'

ENV NONINTERACTIVE=1
USER linuxbrew
ENV NONINTERACTIVE=1

RUN curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh | bash

USER root

RUN chown root:root /home/linuxbrew && \
chmod 0755 /home/linuxbrew

CMD sudo chown -R "$(whoami):$(whoami)" /home/linuxbrew/.linuxbrew

0 comments on commit 85e31c5

Please sign in to comment.