Files
carbon-lang/.devcontainer/Dockerfile
T
Avinal Kumar d6c72e3d33 Specify specific source for pulling homebrew container (#2062)
- Since VS Code Dev container extention has a non-interactive shell, user
cannot select a specific image if there are multiple images under same
named authors.
- This fix ensures that images are only pulled from Docker Hub and no
interactive menu is presented.
- References: #1816, #1817
- Fixes #2043

Signed-off-by: Avinal Kumar <avinal.xlvii@gmail.com>
2022-08-17 09:03:32 -07:00

21 lines
655 B
Docker

# Part of the Carbon Language project, under the Apache License v2.0 with LLVM
# Exceptions. See /LICENSE for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
ARG TAG=3.5.6
FROM docker.io/homebrew/brew:${TAG}
# Install libxcrypt using Homebrew.
RUN brew install libxcrypt --overwrite
# Install all other dependencies using Homebrew.
RUN brew install bazelisk node python@3.9
# Install all python dependencies modules using Pip.
RUN pip3 install -U pip
RUN pip3 install pre-commit black codespell
# Install Clang/LLVM using Homebrew.
# Many Clang/LLVM releases aren't built with options we rely on.
RUN brew install llvm