-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (35 loc) · 1.22 KB
/
Dockerfile
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
29
30
31
32
33
34
35
FROM ubuntu:latest
ENV DEBIAN_FRONTEND=noninteractive
COPY ./gamecoin.conf /root/.gamecoin/gamecoin.conf
COPY . /gamecoin
WORKDIR /gamecoin
#shared libraries and dependencies
RUN apt-get -y update
RUN apt-get install -y build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils wget unzip sudo
RUN useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
RUN apt-get install -y libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev
#BerkleyDB for wallet support
RUN wget http://download.oracle.com/berkeley-db/db-4.8.30.zip
RUN unzip db-4.8.30.zip
WORKDIR /gamecoin/db-4.8.30/dbinc
RUN sed -i 's/__atomic_compare_exchange/__atomic_compare_exchange_db/g' atomic.h
WORKDIR /gamecoin/db-4.8.30/build_unix
RUN ../dist/configure --prefix=/usr/local --enable-cxx
RUN make
RUN make install
#upnp
RUN apt-get install -y libminiupnpc-dev
#ZMQ
RUN apt-get install -y libzmq3-dev
#build gamecoin source
RUN cd ../.. \
&& chmod +x autogen.sh \
&& sudo ./autogen.sh \
&& chmod +x configure \
&& sudo ./configure
WORKDIR /gamecoin
RUN make
RUN make install
#open service port
EXPOSE 62005 9332
CMD gamecoind -reindex --printtoconsole