Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM ghcr.io/rust-cross/rust-musl-cross:x86_64-musl@sha256:2a8837c43bf12e246f1ebd05191de9ee27fcd22f9ca81511ccd4cf75dc16d71c AS musl_x86_64
FROM ghcr.io/rust-cross/rust-musl-cross:aarch64-musl@sha256:6ba919646c5073918e9ac03353dfbfe8552db0acd2f55f76a19af1a4a30a06bb AS musl_aarch64
FROM ghcr.io/rust-cross/rust-musl-cross:x86_64-musl@sha256:ce75e9174325d4fbb3de85c309e2d7ca29f7500169bc4b5d2c611ff7e86d549a AS musl_x86_64
FROM ghcr.io/rust-cross/rust-musl-cross:aarch64-musl@sha256:ecae5dd62d1c938c14f8071d36c16fa699860aace03bfb5284fb1216474d2643 AS musl_aarch64

FROM rust:1.95.0-slim-trixie AS build-base
FROM rust:1.96.1-slim-trixie AS build-base

# Prepopulate cargo index and install dependencies
RUN cargo search --limit=1 && \
Expand Down Expand Up @@ -29,20 +29,20 @@ RUN rustup target add \
x86_64-unknown-linux-gnu \
aarch64-unknown-linux-gnu && \
rustup component add clippy rustfmt && \
cargo install cargo-chef@0.1.73 cargo-license@0.7.0 cargo-hakari@0.9.36
cargo install cargo-chef@0.1.77 cargo-license@0.7.0 cargo-hakari@0.9.38

# Install `just`
RUN curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to /usr/local/bin

# Install `sccache`, `buf`, and `parca-debuginfo` in a single layer
ARG TARGETARCH
RUN arch=$(echo "$TARGETARCH" | sed s/arm64/aarch64/ | sed s/amd64/x86_64/) && \
curl -sSLf https://github.com/mozilla/sccache/releases/download/v0.12.0/sccache-v0.12.0-${arch}-unknown-linux-musl.tar.gz -o sccache.tar.gz && \
curl -sSLf https://github.com/mozilla/sccache/releases/download/v0.16.0/sccache-v0.16.0-${arch}-unknown-linux-musl.tar.gz -o sccache.tar.gz && \
tar -xvf sccache.tar.gz && \
rm sccache.tar.gz && \
cp sccache-v0.12.0-${arch}-unknown-linux-musl/sccache /usr/bin/sccache && \
rm -rf sccache-v0.12.0-${arch}-unknown-linux-musl && \
curl -sSLf "https://github.com/bufbuild/buf/releases/download/v1.61.0/buf-Linux-${arch}" -o "/usr/bin/buf" && \
cp sccache-v0.16.0-${arch}-unknown-linux-musl/sccache /usr/bin/sccache && \
rm -rf sccache-v0.16.0-${arch}-unknown-linux-musl && \
curl -sSLf "https://github.com/bufbuild/buf/releases/download/v1.71.0/buf-Linux-${arch}" -o "/usr/bin/buf" && \
chmod +x "/usr/bin/buf" && \
curl -sSLf https://github.com/parca-dev/parca-debuginfo/releases/download/v0.13.0/parca-debuginfo_0.13.0_Linux_${arch} -o parca-debuginfo && \
chmod +x parca-debuginfo && \
Expand Down
Loading