mirror of
https://github.com/vacp2p/dst-libp2p-test-node.git
synced 2026-08-27 12:51:12 +00:00
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:
@@ -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 \
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user