Files
nomos-node/ci/Dockerfile
T
Antonio 6d840eb783 chore: update toolchain to 1.86.0 (#1213)
* Updates

* Remove unused deps

* Fix broken step to create a new GH issue
2025-04-04 10:12:22 +02:00

30 lines
991 B
Docker

FROM rust:1.86.0-slim-bookworm
LABEL maintainer="augustinas@status.im" \
source="https://github.com/logos-co/nomos-node" \
description="nomos-node ci build image"
# Dependecies for publishing documentation.
RUN apt-get update && apt-get install -yq \
libssl-dev openssh-client git gcc g++ \
clang pkg-config
RUN rustup component add rustfmt clippy
# Jenkins user needs a specific UID/GID to work.
RUN groupadd -g 1001 jenkins \
&& useradd -u 1001 -g jenkins jenkins
# Create necessary directories and assign correct permissions
RUN mkdir -p /home/jenkins/.local/share/cargo-risczero/toolchains \
&& chown -R jenkins:jenkins /home/jenkins/.local \
&& mkdir -p /home/jenkins/.cargo \
&& chown -R jenkins:jenkins /home/jenkins/.cargo
USER jenkins
RUN cargo install cargo-binstall --locked
RUN cargo install rzup --version 0.4.1 --locked
RUN /home/jenkins/.cargo/bin/rzup install cargo-risczero 2.0.0
RUN /home/jenkins/.cargo/bin/rzup install rust 1.85.0