-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (26 loc) · 970 Bytes
/
Dockerfile
File metadata and controls
26 lines (26 loc) · 970 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
FROM ubuntu:groovy
EXPOSE 44556
EXPOSE 22556
EXPOSE 22555
EXPOSE 44555
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get -y update
RUN apt-get -y install git build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils libboost-all-dev
WORKDIR /
ADD http://download.oracle.com/berkeley-db/db-5.1.29.NC.tar.gz /
RUN tar xzvf db-5.1.29.NC.tar.gz
ENV BDB_PREFIX=/db5
RUN mkdir -p ${BDB_PREFIX}
WORKDIR /db-5.1.29.NC/build_unix
RUN sed -i 's/__atomic_compare_exchange/__atomic_compare_exchange_db/g' /db-5.1.29.NC/src/dbinc/atomic.h
RUN ../dist/configure --enable-cxx --disable-shared --with-pic --prefix=${BDB_PREFIX}
RUN make install
WORKDIR /
RUN git clone https://github.com/dogecoin/dogecoin.git
WORKDIR /dogecoin
RUN ./autogen.sh
RUN ./configure LDFLAGS="-L${BDB_PREFIX}/lib/" CPPFLAGS="-I${BDB_PREFIX}/include/"
RUN make
RUN make install
ADD dogecoin.conf /dogecoin.conf
ENTRYPOINT ["dogecoind","-printtoconsole","-conf=/dogecoin.conf"]