2024-10-21 01:47:03 +00:00
|
|
|
ARG ALPINE_VERSION="3.20"
|
|
|
|
|
|
|
|
FROM rustlang/rust:nightly-alpine$ALPINE_VERSION AS builder
|
2023-12-22 23:56:21 +00:00
|
|
|
|
|
|
|
RUN apk add --no-cache musl-dev
|
2024-10-21 01:47:03 +00: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
|
2023-12-23 01:12:59 +00:00
|
|
|
RUN rustup component add rustfmt
|
2024-04-12 01:55:55 +00:00
|
|
|
RUN rustup component add clippy
|
2023-12-23 01:43:39 +00:00
|
|
|
|
|
|
|
FROM builder AS javascript
|
|
|
|
|
|
|
|
RUN apk add --no-cache npm
|
2024-10-21 01:47:03 +00:00
|
|
|
RUN --mount=type=tmpfs,target=/tmp --mount=type=cache,target=/npmcache,sharing=locked npm set cache /npmcache && npm install --global prettier@3.1.0
|