Skip to content

Commit

Permalink
added cpuminer-opt
Browse files Browse the repository at this point in the history
  • Loading branch information
FreakErn committed Jan 4, 2020
1 parent edb23ca commit 1be5189
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions cpuminer-opt/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Build
FROM ubuntu:16.04 as builder

RUN apt-get update \
&& apt-get install -y \
build-essential \
libssl-dev \
libgmp-dev \
libcurl4-openssl-dev \
libjansson-dev \
automake \
git \
&& rm -rf /var/lib/apt/lists/*

RUN git clone https://github.com/JayDDee/cpuminer-opt.git cpuminer \
&& cd cpuminer \
&& ./build.sh

# App
FROM ubuntu:16.04

RUN apt-get update \
&& apt-get install -y \
libcurl3 \
libjansson4 \
&& rm -rf /var/lib/apt/lists/*

COPY --from=builder cpuminer/cpuminer .
ENTRYPOINT ["./cpuminer"]
CMD ["-h"]

0 comments on commit 1be5189

Please sign in to comment.