From 827c5e12ade6b77aac5de903597568aea5112341 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20H=C3=A4ussler?= Date: Fri, 20 Oct 2023 21:00:47 +0200 Subject: [PATCH] Bump to version 3.23.3 --- Dockerfile | 10 +++++++--- build.sh | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6ab81e6..81e0a5c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,12 +16,14 @@ RUN set -x \ libgmp-dev \ libz-dev \ make \ - pkg-config + pkg-config \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/* RUN set -x \ # Compile from source code. && git clone --recursive https://github.com/JayDDee/cpuminer-opt.git /tmp/cpuminer \ && cd /tmp/cpuminer \ - && git checkout v3.23.1 \ + && git checkout v3.23.3 \ && ./autogen.sh \ && extracflags="$extracflags -Ofast -flto -fuse-linker-plugin -ftree-loop-if-convert-stores" \ && CFLAGS="-O3 -march=native -Wall" ./configure --with-curl \ @@ -37,7 +39,9 @@ RUN set -x \ make \ pkg-config \ && apt-get clean \ - && rm -rf /var/lib/apt/lists/* \ + && apt-get -y autoremove --purge \ + && apt-get -y clean \ + && rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/* \ && rm -rf /tmp/* \ # Verify && cpuminer --cputest \ diff --git a/build.sh b/build.sh index 34db403..b90d3b4 100755 --- a/build.sh +++ b/build.sh @@ -1,5 +1,5 @@ #!/bin/bash -version="3.23.1" +version="3.23.3" image="cpuminer-opt" docker build . --tag docker.io/cniweb/$image:$version docker tag docker.io/cniweb/$image:$version docker.io/cniweb/$image:latest