adding dockerfile for compiling wownero binaries from source

pull/1/head
lza_menace 4 years ago
parent 3f506d843e
commit 9ca794ff65

@ -0,0 +1,23 @@
FROM ubuntu:19.10 as og
WORKDIR /opt/wownero
RUN apt-get update && apt-get install -y \
build-essential cmake pkg-config libboost-all-dev \
libssl-dev libzmq3-dev libunbound-dev libsodium-dev libpgm-dev git
RUN git clone https://git.wownero.com/wownero/wownero --depth=1 .
RUN make -j2
#
FROM ubuntu:19.10
WORKDIR /data
# Copy static executables and libs from initial container
COPY --from=og /usr/lib/x86_64-linux-gnu/ /usr/lib/x86_64-linux-gnu/
COPY --from=og /opt/wownero/build/Linux/master/release/bin/wownerod /bin/wownerod
COPY --from=og /opt/wownero/build/Linux/master/release/bin/wownero-wallet-cli /bin/wownero-wallet-cli
COPY --from=og /opt/wownero/build/Linux/master/release/bin/wownero-wallet-rpc /bin/wownero-wallet-rpc

@ -0,0 +1,32 @@
# Wownero
Container image for the official Wownero source code compiled to provide daemon, wallet CLI, and wallet RPC binaries.
```
# build container image of wownero binaries
docker build -t wownero .
# create network bridge so containers can communicate
docker network create --driver=bridge wownero
# run wownero daemon with RPC bindings
docker run -d --rm --name wownero-daemon \
--net=wownero \
-v daemon:/data \
-p 34568:34568 \
wownero \
wownerod \
--data-dir=/data \
--rpc-bind-ip=0.0.0.0 \
--confirm-external-bind \
--non-interactive
# run wownero-wallet-cli
docker run --rm -it --name wownero-wallet \
--net=wownero \
-v wallet:/data \
wownero \
wownero-wallet-cli \
--trusted-daemon \
--daemon-address wownero-daemon:34568
```
Loading…
Cancel
Save