-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
45 lines (41 loc) · 1.1 KB
/
Dockerfile
File metadata and controls
45 lines (41 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
FROM docker.io/rust:slim-trixie
ARG NIGHTLY_VERSION_DATE
ENV NIGHTLY_VERSION=nightly-$NIGHTLY_VERSION_DATE
# apt dependencies
## Run in one layer to avoid caching issues
RUN apt update -yqq && apt install -yqq --no-install-recommends \
build-essential \
cmake \
curl \
git \
jq \
lcov \
openssh-client \
libprotobuf-dev \
libprotoc-dev \
libssl-dev \
musl-tools \
nats-server \
pkg-config \
protobuf-compiler \
yq \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
# cargo dependencies
RUN cargo install cargo-binstall --locked && cargo binstall --locked --no-confirm --disable-telemetry \
cargo-audit \
cargo-auditable \
cargo-cache \
cargo-chef \
cargo-deny \
cargo-llvm-cov \
cargo-nextest \
cargo-udeps \
sqlx-cli \
taplo-cli \
typos-cli \
&& cargo cache --autoclean
# rustup dependencies
## added to default stable toolchain
RUN rustup component add clippy llvm-tools-preview
## add nightly toolchain
RUN rustup toolchain add $NIGHTLY_VERSION --component rustfmt --component clippy