Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
pkg-config \
zip unzip \
python \
git
git \
libnss3-dev

# Install Bazel
ARG BAZELISK_VERSION=v1.10.1
Expand All @@ -18,6 +19,21 @@ RUN curl -fSsL -o /usr/local/bin/bazelisk https://github.com/bazelbuild/bazelisk
&& chmod 0755 /usr/local/bin/bazelisk \
&& ln -sf /usr/local/bin/bazelisk /usr/local/bin/bazel

# Install Homebrew. See:
# https://docs.brew.sh/Installation#skip-tap-cloning-beta
# https://docs.brew.sh/Installation#unattended-installation
ENV HOMEBREW_INSTALL_FROM_API=1
ENV NONINTERACTIVE=1
RUN /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" \
&& echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> /etc/profile.d/99-homebrew.sh \
&& chmod 0755 /etc/profile.d/99-homebrew.sh \
&& eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" \
&& brew --version

# Install pnpm package manager
RUN eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" \
&& brew install pnpm

# Clean extraneous packages and files
RUN apt-get autoremove -y \
&& apt-get clean -y \
Expand Down