2017-02-23 22:55:37 +00:00
|
|
|
FROM ubuntu:16.04
|
|
|
|
|
|
|
|
ENV SRC_DIR /usr/local/src/monero
|
|
|
|
|
|
|
|
RUN set -x \
|
|
|
|
&& buildDeps=' \
|
|
|
|
ca-certificates \
|
|
|
|
cmake \
|
|
|
|
g++ \
|
|
|
|
git \
|
|
|
|
libboost1.58-all-dev \
|
|
|
|
libssl-dev \
|
|
|
|
make \
|
|
|
|
pkg-config \
|
|
|
|
' \
|
|
|
|
&& apt-get -qq update \
|
2017-03-09 16:03:28 +00:00
|
|
|
&& apt-get -qq --no-install-recommends install $buildDeps
|
|
|
|
|
2018-01-13 17:12:32 +00:00
|
|
|
RUN git clone https://kumig.it/kumitterer/danicoin $SRC_DIR
|
2017-03-09 16:03:28 +00:00
|
|
|
WORKDIR $SRC_DIR
|
|
|
|
RUN make -j$(nproc) release-static
|
|
|
|
|
|
|
|
RUN cp build/release/bin/* /usr/local/bin/ \
|
2017-02-23 22:55:37 +00:00
|
|
|
\
|
|
|
|
&& rm -r $SRC_DIR \
|
|
|
|
&& apt-get -qq --auto-remove purge $buildDeps
|
2016-08-31 16:10:44 +00:00
|
|
|
|
|
|
|
# Contains the blockchain
|
2018-01-13 17:12:32 +00:00
|
|
|
VOLUME /root/.danicoin
|
2016-08-31 16:10:44 +00:00
|
|
|
|
|
|
|
# Generate your wallet via accessing the container and run:
|
|
|
|
# cd /wallet
|
2018-01-13 17:12:32 +00:00
|
|
|
# daniwallet
|
2016-08-31 16:10:44 +00:00
|
|
|
VOLUME /wallet
|
|
|
|
|
|
|
|
ENV LOG_LEVEL 0
|
|
|
|
ENV P2P_BIND_IP 0.0.0.0
|
2018-01-13 17:12:32 +00:00
|
|
|
ENV P2P_BIND_PORT 14086
|
2016-08-31 16:10:44 +00:00
|
|
|
ENV RPC_BIND_IP 127.0.0.1
|
2018-01-13 17:12:32 +00:00
|
|
|
ENV RPC_BIND_PORT 25096
|
2016-08-31 16:10:44 +00:00
|
|
|
|
2018-01-13 17:12:32 +00:00
|
|
|
EXPOSE 14086
|
|
|
|
EXPOSE 25096
|
2016-08-31 16:10:44 +00:00
|
|
|
|
2018-01-13 17:12:32 +00:00
|
|
|
CMD danicoind --log-level=$LOG_LEVEL --p2p-bind-ip=$P2P_BIND_IP --p2p-bind-port=$P2P_BIND_PORT --rpc-bind-ip=$RPC_BIND_IP --rpc-bind-port=$RPC_BIND_PORT
|