build: fix install homebrew error of abort "Don't run this as root!" (#10076)
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
FROM mcr.microsoft.com/devcontainers/base:bookworm
|
FROM mcr.microsoft.com/devcontainers/base:bookworm
|
||||||
|
|
||||||
|
USER vscode
|
||||||
# Install Homebrew For Linux
|
# Install Homebrew For Linux
|
||||||
RUN /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" && \
|
RUN /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" && \
|
||||||
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" && \
|
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" && \
|
||||||
|
|||||||
Reference in New Issue
Block a user