2024-10-20 22:35:16 -04:00
|
|
|
# syntax=docker/dockerfile:1
|
|
|
|
|
ARG ALPINE_VERSION="3.20"
|
|
|
|
|
|
|
|
|
|
FROM rustlang/rust:nightly-alpine$ALPINE_VERSION AS builder
|
2024-09-28 22:32:20 -04:00
|
|
|
|
2024-09-28 21:50:50 -04:00
|
|
|
RUN apk add --no-cache musl-dev pkgconfig libressl3.8-libssl libressl-dev
|
2024-10-20 22:35:16 -04:00
|
|
|
RUN --mount=type=tmpfs,target=/tmp --mount=type=cache,target=/usr/local/cargo/registry,sharing=locked cargo install --locked --no-default-features --features ci-autoclean cargo-cache
|
2024-09-28 19:17:54 -04:00
|
|
|
RUN rustup component add rustfmt
|
|
|
|
|
RUN rustup component add clippy
|