From 420c4ac982145db444b6b5947e7425074855a8ad Mon Sep 17 00:00:00 2001 From: Adriano Date: Sat, 19 Sep 2015 15:08:31 +0100 Subject: [PATCH] Modified Dockerfile to reduce the Virtual Memory footprint and total amount of images. Before modification the total memory footprint was around 3GB and this has now been reduced by ~50% --- Dockerfile | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/Dockerfile b/Dockerfile index dc2101d..b3230f7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,21 +5,18 @@ # # -FROM ubuntu:12.10 -MAINTAINER Guillaume J. Charmes +FROM ubuntu:14.04 +MAINTAINER Guillaume J. Charmes -RUN apt-get update -qq +RUN apt-get update -qq && \ + apt-get install -qqy automake libcurl4-openssl-dev git make -RUN apt-get install -qqy automake -RUN apt-get install -qqy libcurl4-openssl-dev -RUN apt-get install -qqy git -RUN apt-get install -qqy make +RUN git clone https://github.com/pooler/cpuminer -RUN git clone https://github.com/pooler/cpuminer +RUN cd cpuminer && \ + ./autogen.sh && \ + ./configure CFLAGS="-O3" && \ + make -RUN cd cpuminer && ./autogen.sh -RUN cd cpuminer && ./configure CFLAGS="-O3" -RUN cd cpuminer && make - -WORKDIR /cpuminer -ENTRYPOINT ["./minerd"] +WORKDIR /cpuminer +ENTRYPOINT ["./minerd"]