|
1 |
| -FROM mcr.microsoft.com/vscode/devcontainers/rust:1 |
| 1 | +FROM mcr.microsoft.com/devcontainers/rust:bookworm |
2 | 2 |
|
3 | 3 | RUN apt-get update \
|
4 | 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 |
| 5 | + && apt-get -y install --no-install-recommends clang lld zstd \ |
| 6 | + && apt-get clean \ |
| 7 | + && rm -rf /var/lib/apt/lists/* \ |
| 8 | + && wget -q -O /usr/local/bin/bazel https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-linux-amd64 \ |
| 9 | + && wget -q -O /tmp/buck.zst https://github.com/facebook/buck2/releases/download/latest/buck2-x86_64-unknown-linux-gnu.zst \ |
| 10 | + && wget -q -O /usr/local/bin/buildifier https://github.com/bazelbuild/buildtools/releases/latest/download/buildifier-linux-amd64 \ |
| 11 | + && unzstd /tmp/buck.zst -o /usr/local/bin/buck \ |
| 12 | + && chmod +x /usr/local/bin/bazel /usr/local/bin/buck /usr/local/bin/buildifier \ |
| 13 | + && rm /tmp/buck.zst \ |
| 14 | + && rustup component add rust-analyzer rust-src |
0 commit comments