2017-02-23 17:55:37 -05: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 11:03:28 -05:00
|
|
|
&& apt-get -qq --no-install-recommends install $buildDeps
|
|
|
|
|
|
|
|
RUN git clone https://github.com/monero-project/monero.git $SRC_DIR
|
|
|
|
WORKDIR $SRC_DIR
|
|
|
|
RUN make -j$(nproc) release-static
|
|
|
|
|
|
|
|
RUN cp build/release/bin/* /usr/local/bin/ \
|
2017-02-23 17:55:37 -05:00
|
|
|
\
|
|
|
|
&& rm -r $SRC_DIR \
|
|
|
|
&& apt-get -qq --auto-remove purge $buildDeps
|
2016-08-31 12:10:44 -04:00
|
|
|
|
|
|
|
# Contains the blockchain
|
|
|
|
VOLUME /root/.bitmonero
|
|
|
|
|
|
|
|
# Generate your wallet via accessing the container and run:
|
|
|
|
# cd /wallet
|
2017-02-23 17:55:37 -05:00
|
|
|
# monero-wallet-cli
|
2016-08-31 12:10:44 -04:00
|
|
|
VOLUME /wallet
|
|
|
|
|
|
|
|
ENV LOG_LEVEL 0
|
|
|
|
ENV P2P_BIND_IP 0.0.0.0
|
|
|
|
ENV P2P_BIND_PORT 18080
|
|
|
|
ENV RPC_BIND_IP 127.0.0.1
|
|
|
|
ENV RPC_BIND_PORT 18081
|
|
|
|
|
|
|
|
EXPOSE 18080
|
|
|
|
EXPOSE 18081
|
|
|
|
|
2017-02-23 17:55:37 -05:00
|
|
|
CMD monerod --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
|