feat: add homebrew to base images (#43)

This commit is contained in:
Charles Moog 2021-02-02 12:46:14 -06:00 committed by GitHub
parent e60d17d4a4
commit 98c24a3f55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 9 deletions

View File

@ -11,19 +11,11 @@ on:
jobs:
build-images:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
-
name: Login to DockerHub
uses: docker/login-action@v1

View File

@ -30,3 +30,7 @@ RUN useradd -mUs /bin/bash coder && \
RUN usermod -aG docker coder
USER coder
# install Homebrew, must be as a non-root user
RUN /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
ENV PATH /home/linuxbrew/.linuxbrew/bin:${PATH}

View File

@ -35,3 +35,7 @@ RUN adduser coder && \
RUN usermod -aG docker coder
USER coder
# install Homebrew, must be as a non-root user
RUN /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
ENV PATH /home/linuxbrew/.linuxbrew/bin:${PATH}

View File

@ -32,3 +32,7 @@ RUN adduser --gecos '' --disabled-password coder && \
RUN usermod -aG docker coder
USER coder
# install Homebrew, must be as a non-root user
RUN /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
ENV PATH /home/linuxbrew/.linuxbrew/bin:${PATH}