Speed up regression node build: drop unused ggplotnim, merge apt layers (#39)

remove ggplotnim and merge apt-get for faster build
This commit is contained in:
Zhuolun Li
2026-06-26 09:48:18 +01:00
committed by GitHub
parent e4ec33715a
commit 2ff22f99f5
2 changed files with 4 additions and 24 deletions
+3 -22
View File
@@ -3,34 +3,15 @@ FROM debian:bookworm-slim AS builder
WORKDIR /node
# All build + runtime packages in one layer (previously four separate apt-get
# update/install passes that re-installed curl/git/build-essential/ca-certs/etc.).
RUN apt-get update && apt-get install -y \
curl git build-essential ca-certificates \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y \
gcc-multilib g++-multilib libc6-dev-i386 \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y \
curl git build-essential ca-certificates \
gcc libc6-dev-i386 \
gcc gcc-multilib g++-multilib libc6-dev-i386 \
libssl3 iproute2 procps \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get clean
RUN apt-get update && \
apt-get install -y --no-install-recommends \
ca-certificates \
libssl3 \
iproute2 \
curl \
procps \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get clean
RUN git config --global http.sslVerify false
RUN curl https://nim-lang.org/download/nim-2.2.6-linux_x64.tar.xz -o /tmp/nim.tar.xz \
+1 -2
View File
@@ -11,5 +11,4 @@ skipDirs = @[]
requires "nim >= 2.2.0",
"nimcrypto 0.6.4",
"https://github.com/vacp2p/nim-libp2p#26e181e4dd65188051ab4783bcc538ed9579644f", # 2.0.0
"ggplotnim"
"https://github.com/vacp2p/nim-libp2p#26e181e4dd65188051ab4783bcc538ed9579644f" # 2.0.0