build: fix install homebrew error of abort "Don't run this as root!" (#10076)

This commit is contained in:
Table bird
2025-02-11 12:08:56 +08:00
committed by GitHub
parent c8c7b7b65c
commit 589fc32746
+1
View File
@@ -1,5 +1,6 @@
FROM mcr.microsoft.com/devcontainers/base:bookworm
USER vscode
# Install Homebrew For Linux
RUN /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" && \
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" && \