1FROM mcr.microsoft.com/vscode/devcontainers/rust:1
2
3RUN apt-get update \
4    && export DEBIAN_FRONTEND=noninteractive \
5    && apt-get -y install --no-install-recommends openjdk-11-jdk lld \
6    && rustup default nightly 2>&1 \
7    && rustup component add rust-analyzer-preview rustfmt clippy 2>&1 \
8    && wget -q -O bin/install-bazel https://github.com/bazelbuild/bazel/releases/download/4.0.0/bazel-4.0.0-installer-linux-x86_64.sh \
9    && wget -q -O bin/buck https://jitpack.io/com/github/facebook/buck/a5f0342ae3/buck-a5f0342ae3-java11.pex \
10    && wget -q -O bin/buildifier https://github.com/bazelbuild/buildtools/releases/latest/download/buildifier \
11    && wget -q -O tmp/watchman.zip https://github.com/facebook/watchman/releases/download/v2020.09.21.00/watchman-v2020.09.21.00-linux.zip \
12    && chmod +x bin/install-bazel bin/buck bin/buildifier \
13    && bin/install-bazel \
14    && unzip tmp/watchman.zip -d tmp \
15    && mv tmp/watchman-v2020.09.21.00-linux/bin/watchman bin \
16    && mv tmp/watchman-v2020.09.21.00-linux/lib/* /usr/local/lib \
17    && mkdir -p /usr/local/var/run/watchman \
18    && rm tmp/watchman.zip
19