mirror of
https://github.com/biomejs/biome.git
synced 2025-12-23 08:21:13 +00:00
19 lines
571 B
Docker
19 lines
571 B
Docker
# syntax=docker/dockerfile:1@sha256:b6afd42430b15f2d2a4c5a02b919e98a525b785b1aaff16747d2f623364e39b6
|
|
FROM rust:1.91.1-bookworm@sha256:c1e5f19e773b7878c3f7a805dd00a495e747acbdc76fb2337a4ebf0418896b33
|
|
WORKDIR /usr/src/
|
|
|
|
# https://github.com/nodesource/distributions
|
|
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && apt-get install -y nodejs
|
|
RUN cargo install hyperfine
|
|
|
|
COPY Cargo.toml Cargo.lock ./
|
|
COPY ./crates ./crates
|
|
COPY ./xtask ./xtask
|
|
|
|
WORKDIR /usr/src/benchmark
|
|
|
|
COPY ./benchmark .
|
|
|
|
RUN npm ci
|
|
RUN node bench.js formatter
|
|
RUN node bench.js linter
|