From c4c1719ace1806359821db0cc3f8f20b0387c552 Mon Sep 17 00:00:00 2001 From: Constantine Molchanov Date: Tue, 7 Jul 2026 12:06:25 +0400 Subject: [PATCH] Use Nim Docker image (#10) * Tests: Dockerfile: Change base to nimlang/nim:latest. * Tests: Dockerfile: Remove unnecessary deps covered in the base image. * Tests: Dockerfile: Replace manual cleanup with apt-get dist-clean. * Tests: Dockerfile: Remove Nim installation step covered in the base image. --- tests/Dockerfile | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/tests/Dockerfile b/tests/Dockerfile index 9180a6c..fde0f86 100644 --- a/tests/Dockerfile +++ b/tests/Dockerfile @@ -1,10 +1,10 @@ -FROM ubuntu:24.04 +FROM nimlang/nim:latest RUN apt-get update && apt-get install -y --no-install-recommends \ gcc make git curl ca-certificates xz-utils \ libc-dev \ iproute2 \ - && rm -rf /var/lib/apt/lists/* + && apt-get dist-clean # Build miniupnpd with stub redirector: no iptables/nftables needed, always # returns success for port mapping requests — safe for isolated test containers. @@ -24,13 +24,6 @@ RUN git clone --depth=1 --branch miniupnpd_2_3_9 \ && install -m 755 miniupnpd /usr/local/sbin/miniupnpd-natpmponly \ && rm -rf /tmp/miniupnp /tmp/stub_rdr.c -# Install Nim -ARG NIM_VERSION=2.2.10 -RUN curl -fsSL "https://nim-lang.org/download/nim-${NIM_VERSION}-linux_x64.tar.xz" \ - | tar -xJ -C /opt && \ - ln -s "/opt/nim-${NIM_VERSION}/bin/nim" /usr/local/bin/nim && \ - ln -s "/opt/nim-${NIM_VERSION}/bin/nimble" /usr/local/bin/nimble - # Install nim deps (cached layer) WORKDIR /app COPY libplum.nimble .