Skip to content

Commit 5394863

Browse files
committed
update dockerfile with more dependencies needed by onmcu
1 parent bd08e46 commit 5394863

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

Dockerfile

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,34 @@ FROM docker.io/myoung34/github-runner:2.332.0-ubuntu-focal
22

33
USER root
44

5-
# Install system dependencies
6-
RUN apt-get update && apt-get install -y --no-install-recommends \
5+
# Install system dependencies + Node.js 22
6+
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \
7+
&& apt-get update && apt-get upgrade -y \
8+
&& apt-get install -y --no-install-recommends \
79
curl \
810
build-essential \
911
pkg-config \
1012
libssl-dev \
1113
libudev-dev \
1214
buildah \
1315
git-crypt \
16+
nodejs \
17+
&& corepack enable \
18+
&& corepack prepare pnpm@latest --activate \
1419
&& apt-get clean \
20+
&& apt-get autoremove --purge -y \
1521
&& rm -rf /var/lib/apt/lists/*
16-
17-
1822

1923
# Switch to runner user and install Rust
2024
USER runner
2125
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable \
2226
&& /home/runner/.cargo/bin/rustup component add clippy rustfmt \
2327
&& /home/runner/.cargo/bin/rustup target add x86_64-unknown-linux-gnu aarch64-unknown-linux-gnu
24-
2528

2629
# Add Rust to PATH for runner user
2730
ENV PATH="/home/runner/.cargo/bin:${PATH}"
31+
32+
# Install cargo-binstall via prebuilt binary (cargo install fails on Focal's GCC 9)
33+
RUN curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash \
34+
&& cargo binstall cargo-nextest --no-confirm --no-symlinks \
35+
&& cargo binstall sqlx-cli --no-confirm --no-symlinks

0 commit comments

Comments
 (0)