mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 18:47:36 -07:00
a1cd4db4e6
- minified image: 75% smaller image - statically-linked build - add .dockerignore: no need to send repo to build context
45 lines
1.0 KiB
Docker
45 lines
1.0 KiB
Docker
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 \
|
|
&& apt-get -qq --no-install-recommends install $buildDeps \
|
|
\
|
|
&& git clone https://github.com/monero-project/monero.git $SRC_DIR \
|
|
&& cd $SRC_DIR \
|
|
&& make -j$(nproc) release-static \
|
|
&& cp build/release/bin/* /usr/local/bin/ \
|
|
\
|
|
&& rm -r $SRC_DIR \
|
|
&& apt-get -qq --auto-remove purge $buildDeps
|
|
|
|
# Contains the blockchain
|
|
VOLUME /root/.bitmonero
|
|
|
|
# Generate your wallet via accessing the container and run:
|
|
# cd /wallet
|
|
# monero-wallet-cli
|
|
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
|
|
|
|
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
|