Skip to content

Commit

Permalink
Modified Dockerfile to reduce the Virtual Memory footprint and total …
Browse files Browse the repository at this point in the history
…amount of images.

Before modification the total memory footprint was around 3GB and this has now been reduced by ~50%
  • Loading branch information
dev-ace committed Sep 19, 2015
1 parent f3b0aab commit 420c4ac
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,18 @@
#
#

FROM ubuntu:12.10
MAINTAINER Guillaume J. Charmes <[email protected]>
FROM ubuntu:14.04
MAINTAINER Guillaume J. Charmes <[email protected]>

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"]

0 comments on commit 420c4ac

Please sign in to comment.