Skip to content

Commit c5f9488

Browse files
committed
fix: flatten run command
1 parent 5be0a5d commit c5f9488

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

Dockerfile

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,18 @@ ENV DEBIAN_FRONTEND=noninteractive \
77
HOMEBREW_NO_ENV_HINTS=1 \
88
HOMEBREW_NO_ANALYTICS=1
99

10-
RUN apt-get update && \
10+
RUN \
11+
# Setup system dependencies
12+
apt-get update && \
1113
apt-get install -y --no-install-recommends \
1214
build-essential curl git ca-certificates procps bash && \
13-
rm -rf /var/lib/apt/lists/*
14-
15-
RUN useradd -m linuxbrew
16-
17-
RUN curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh | \
18-
su - linuxbrew -c "NONINTERACTIVE=1 /bin/bash" \
19-
chmod -R o+rX /home/linuxbrew/.linuxbrew
15+
rm -rf /var/lib/apt/lists/* && \
16+
# Setup Homebrew
17+
useradd -m linuxbrew && \
18+
curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh | \
19+
su - linuxbrew -c "NONINTERACTIVE=1 /bin/bash" && \
20+
chgrp -R root /home/linuxbrew/.linuxbrew && \
21+
chmod -R g+rX /home/linuxbrew/.linuxbrew;
2022

2123
ENV PATH="/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:${PATH}"
2224

0 commit comments

Comments
 (0)