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%
This commit is contained in:
parent
f3b0aabf35
commit
420c4ac982
1 changed files with 11 additions and 14 deletions
25
Dockerfile
25
Dockerfile
|
@ -5,21 +5,18 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
FROM ubuntu:12.10
|
FROM ubuntu:14.04
|
||||||
MAINTAINER Guillaume J. Charmes <guillaume@charmes.net>
|
MAINTAINER Guillaume J. Charmes <guillaume@charmes.net>
|
||||||
|
|
||||||
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 git clone https://github.com/pooler/cpuminer
|
||||||
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 cd cpuminer && \
|
||||||
|
./autogen.sh && \
|
||||||
|
./configure CFLAGS="-O3" && \
|
||||||
|
make
|
||||||
|
|
||||||
RUN cd cpuminer && ./autogen.sh
|
WORKDIR /cpuminer
|
||||||
RUN cd cpuminer && ./configure CFLAGS="-O3"
|
ENTRYPOINT ["./minerd"]
|
||||||
RUN cd cpuminer && make
|
|
||||||
|
|
||||||
WORKDIR /cpuminer
|
|
||||||
ENTRYPOINT ["./minerd"]
|
|
||||||
|
|
Loading…
Reference in a new issue