Commit 87b8c18f authored by nimrod's avatar nimrod
Browse files

Remove Homebrew.

I wasn't too happy with having another package manager (APT and the
language specific managers seemed enough) and there security issues when
running as a regular user. Before running it for the first time as root
worked and I didn't it need afterwards. Now however, it refuses to even
run once.
parent 3f196e1f
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -157,10 +157,6 @@ RUN apt-get update && \
    && \
    sed -i 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/; s/# en_IL UTF-8/en_IL UTF-8/; s/# he_IL.UTF-8 UTF-8/he_IL.UTF-8 UTF-8/;' /etc/locale.gen && \
    locale-gen && \
    git clone https://github.com/Homebrew/brew /usr/local/share/brew && \
    ln -s /usr/local/share/brew/bin/brew /usr/local/bin/brew && \
    brew install --force-bottle \
    && \
    brew cleanup --prune=all -s && \
    ln --symbolic --target /etc/bash_completion.d/ /usr/local/etc/bash_completion.d/* && \
    python3 -m pip install --use-deprecated=legacy-resolver --no-cache-dir \
@@ -278,12 +274,11 @@ RUN apt-get update && \
    sed -i -e 's/ ALL$/ NOPASSWD:ALL/' /etc/sudoers && \
    install -d -m 777 /keybase && \
    rm /etc/ssh/ssh_host_* && \
    rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/* /var/cache/apt/archives/* ~/.cache/* /usr/local/share/brew/Library/Taps/*
    rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/* /var/cache/apt/archives/* ~/.cache/*
COPY --chown=root:root bfg /usr/local/bin/
COPY --chown=root:root bash_completion.d/* /etc/bash_completion.d/
LABEL com.github.containers.toolbox="true" \
      com.github.debarshiray.toolbox="true"
ENV PATH /usr/local/lib/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV HOMEBREW_NO_AUTO_UPDATE 1
VOLUME /run/sshd
CMD ["/bin/bash"]