-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (20 loc) · 783 Bytes
/
Dockerfile
File metadata and controls
28 lines (20 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM ubuntu:16.04
RUN apt-get -qy update && \
apt-get -y install build-essential autoconf libtool libncurses-dev yasm curl libcurl4-openssl-dev \
libudev-dev libusb-1.0-0-dev pkg-config wget unzip && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
WORKDIR /cgminer
RUN wget https://github.com/vthoang/cgminer/archive/master.zip -O cgminer-vthoang.zip && \
unzip cgminer-vthoang.zip && rm cgminer-vthoang.zip && \
mv cgminer-master cgminer-vthoang
WORKDIR /cgminer/cgminer-vthoang
ADD files/run.sh ./run.sh
RUN ./autogen.sh && \
export LIBCURL_CFLAGS='-I/usr/include/curl' && \
export LIBCURL_LIBS='-L/usr/lib -lcurl' && \
CFLAGS="-O2 -Wall -march=native" ./configure --enable-gekko && \
make
RUN chmod +x ./run.sh
ENTRYPOINT ["bash"]
CMD ["/cgminer/cgminer-vthoang/run.sh"]