Skip to content

Commit c2b01dd

Browse files
committed
fix: homebrew installation
1 parent afa4f40 commit c2b01dd

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM python:3.13-slim
22

33
ENV DEBIAN_FRONTEND=noninteractive \
4+
NONINTERACTIVE=1 \
45
HOMEBREW_NO_AUTO_UPDATE=1 \
56
HOMEBREW_NO_INSTALL_CLEANUP=1 \
67
HOMEBREW_NO_ENV_HINTS=1 \
@@ -11,7 +12,10 @@ RUN apt-get update && \
1112
build-essential curl git ca-certificates procps bash && \
1213
rm -rf /var/lib/apt/lists/*
1314

14-
RUN curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh | bash
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"
1519

1620
ENV PATH="/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:${PATH}"
1721

0 commit comments

Comments
 (0)