mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-22 19:03:25 +01:00
a7e2e1b07f
Binding RPC to 127.0.0.1 makes no sense. Despite the fact port 18081 is exposed, no one will be able to connect to the daemon. RPC should be listening at all interfaces when running inside a Docker container.
49 lines
1.1 KiB
Docker
49 lines
1.1 KiB
Docker
# Multistage docker build, requires docker 17.05
|
|
|
|
# builder stage
|
|
FROM ubuntu:16.04 as builder
|
|
|
|
RUN apt-get update && \
|
|
apt-get --no-install-recommends --yes install \
|
|
ca-certificates \
|
|
cmake \
|
|
g++ \
|
|
libboost1.58-all-dev \
|
|
libssl-dev \
|
|
libzmq3-dev \
|
|
libreadline-dev \
|
|
libsodium-dev \
|
|
make \
|
|
pkg-config \
|
|
graphviz \
|
|
doxygen \
|
|
git
|
|
|
|
WORKDIR /src
|
|
COPY . .
|
|
RUN rm -rf build && \
|
|
make -j$(nproc) release-static
|
|
|
|
# runtime stage
|
|
FROM ubuntu:16.04
|
|
|
|
RUN apt-get update && \
|
|
apt-get --no-install-recommends --yes install ca-certificates && \
|
|
apt-get clean && \
|
|
rm -rf /var/lib/apt
|
|
|
|
COPY --from=builder /src/build/release/bin/* /usr/local/bin/
|
|
|
|
# Contains the blockchain
|
|
VOLUME /root/.bitmonero
|
|
|
|
# Generate your wallet via accessing the container and run:
|
|
# cd /wallet
|
|
# monero-wallet-cli
|
|
VOLUME /wallet
|
|
|
|
EXPOSE 18080
|
|
EXPOSE 18081
|
|
|
|
ENTRYPOINT ["monerod", "--p2p-bind-ip=0.0.0.0", "--p2p-bind-port=18080", "--rpc-bind-ip=0.0.0.0", "--rpc-bind-port=18081", "--non-interactive", "--confirm-external-bind"]
|