-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 AS musl_x86_64 | ||
FROM ghcr.io/rust-cross/rust-musl-cross:aarch64-musl AS musl_aarch64 | ||
|
||
FROM rust:1.80.1-slim-bookworm AS build-base | ||
FROM rust:1.82.0-slim-bookworm AS build-base | ||
|
||
# Prepopulate cargo index and install dependencies | ||
RUN cargo search --limit=1 && \ | ||
|
@@ -28,20 +28,20 @@ RUN rustup target add \ | |
x86_64-unknown-linux-gnu \ | ||
aarch64-unknown-linux-gnu && \ | ||
rustup component add clippy rustfmt && \ | ||
cargo install [email protected].67 [email protected] | ||
cargo install [email protected].68 [email protected] | ||
|
||
# Install `just` | ||
RUN curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to /usr/local/bin | ||
|
||
# Install `sccache` and `buf` in a single layer | ||
ARG TARGETARCH | ||
RUN arch=$(echo "$TARGETARCH" | sed s/arm64/aarch64/ | sed s/amd64/x86_64/) && \ | ||
curl -LSfs https://github.com/mozilla/sccache/releases/download/v0.7.4/sccache-v0.7.4-${arch}-unknown-linux-musl.tar.gz -o sccache.tar.gz && \ | ||
curl -LSfs https://github.com/mozilla/sccache/releases/download/v0.8.2/sccache-v0.8.2-${arch}-unknown-linux-musl.tar.gz -o sccache.tar.gz && \ | ||
tar -xvf sccache.tar.gz && \ | ||
rm sccache.tar.gz && \ | ||
cp sccache-v0.7.4-${arch}-unknown-linux-musl/sccache /usr/bin/sccache && \ | ||
rm -rf sccache-v0.7.4-${arch}-unknown-linux-musl && \ | ||
curl -sSL "https://github.com/bufbuild/buf/releases/download/v1.29.0/buf-Linux-${arch}" -o "/usr/bin/buf" && \ | ||
cp sccache-v0.8.2-${arch}-unknown-linux-musl/sccache /usr/bin/sccache && \ | ||
rm -rf sccache-v0.8.2-${arch}-unknown-linux-musl && \ | ||
curl -sSL "https://github.com/bufbuild/buf/releases/download/v1.47.2/buf-Linux-${arch}" -o "/usr/bin/buf" && \ | ||
chmod +x "/usr/bin/buf" | ||
|
||
# Copy musl from the prebuilt x86_64 and aarch64 images | ||
|