mirror of
https://github.com/logos-co/nomos-node.git
synced 2026-08-27 09:31:10 +00:00
30 lines
991 B
Docker
30 lines
991 B
Docker
FROM rust:1.85.1-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
|