-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (35 loc) · 1.58 KB
/
Dockerfile
File metadata and controls
41 lines (35 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM docker.io/myoung34/github-runner:2.334.0-debian-trixie
USER root
# Install system dependencies + Node.js 22
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \
&& apt-get update && apt-get upgrade -y \
&& apt-get install -y --no-install-recommends \
curl \
build-essential \
pkg-config \
libssl-dev \
libudev-dev \
buildah \
git-crypt \
nodejs \
sqlite3 \
&& corepack enable \
&& corepack prepare pnpm@latest --activate \
&& apt-get clean \
&& apt-get autoremove --purge -y \
&& rm -rf /var/lib/apt/lists/*
# Switch to runner user and install Rust
USER runner
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable \
&& /home/runner/.cargo/bin/rustup component add clippy rustfmt \
&& /home/runner/.cargo/bin/rustup target add x86_64-unknown-linux-gnu aarch64-unknown-linux-gnu
# Add Rust to PATH for runner user
ENV PATH="/home/runner/.cargo/bin:${PATH}"
# Install cargo-binstall via prebuilt binary (cargo install fails on Focal's GCC 9)
RUN curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash \
# These are not (yet) installable with binstall, keeping in extra layer for caching
&& cargo binstall sqlx-cli --no-confirm --no-symlinks \
&& cargo binstall taplo-cli --no-confirm --no-symlinks
RUN cargo binstall cargo-nextest --no-confirm --no-symlinks \
&& cargo binstall cargo-deny --no-confirm --no-symlinks \
&& cargo binstall just --no-confirm --no-symlinks