All checks were successful
continuous-integration/drone/push Build is passing
30 lines
1.3 KiB
Docker
30 lines
1.3 KiB
Docker
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.224.2/containers/rust/.devcontainer/base.Dockerfile
|
|
|
|
# [Choice] Debian OS version (use bullseye on local arm64/Apple Silicon): buster, bullseye
|
|
ARG VARIANT="bullseye"
|
|
FROM mcr.microsoft.com/vscode/devcontainers/rust:dev-1-bullseye
|
|
|
|
# [Optional] Uncomment this section to install additional packages.
|
|
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
|
|
# && apt-get -y install --no-install-recommends <your-package-list-here>
|
|
RUN apt-get update && apt-get -y install --no-install-recommends sudo attr xattr lld clang && apt-get -y purge --autoremove && apt-get clean -y && rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN rustup toolchain install nightly --allow-downgrade && \
|
|
rustup default nightly
|
|
RUN rm -vf /usr/local/cargo/bin/{rust,cargo-}fmt && \
|
|
rustup update && \
|
|
rustup component add clippy rustfmt rust-src rust-analysis rust-docs --toolchain nightly
|
|
|
|
USER vscode
|
|
|
|
RUN CARGO_HOME=/usr/local/cargo /usr/local/cargo/bin/cargo install \
|
|
cargo-edit \
|
|
cargo-watch \
|
|
cargo-expand \
|
|
cargo-fuzz \
|
|
cargo-cache \
|
|
cargo-modules \
|
|
b3sum; \
|
|
/usr/local/cargo/bin/cargo cache -a
|
|
|
|
COPY --chown=vscode:vscode contrib/identity.local /home/vscode/.config/git/
|