aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authoreiabea <developer@eiabea.com>2016-08-31 18:10:44 +0200
committereiabea <developer@eiabea.com>2016-09-01 11:17:17 +0200
commit93972546c052d16f310d24e2c8334b1f6d4e79c7 (patch)
tree4e75d0ebb7c4fff06183c7a565a06bbe44bcf5f2 /Dockerfile
parentMerge pull request #1014 (diff)
downloadmonero-93972546c052d16f310d24e2c8334b1f6d4e79c7.tar.xz
Added basic docker file
finalized dockerfile
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile49
1 files changed, 49 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 000000000..8f6f4294e
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,49 @@
+FROM debian:testing
+MAINTAINER eiabea <developer@eiabea.com>
+
+# Install clone dependencies
+RUN set -e && \
+ apt-get update -q && \
+ apt-get install -q -y --no-install-recommends ca-certificates git && \
+ git clone https://github.com/monero-project/bitmonero.git src && \
+ apt-get purge -y git && \
+ apt-get clean -q -y && \
+ apt-get autoclean -q -y && \
+ apt-get autoremove -q -y
+
+WORKDIR /src
+
+# Install make dependencies
+RUN set -e && \
+ apt-get update -q && \
+ apt-get install -q -y --no-install-recommends build-essential ca-certificates g++ gcc cmake \
+ pkg-config libunbound2 libevent-2.0-5 libgtest-dev libboost-all-dev libdb5.3++-dev libdb5.3-dev libssl-dev && \
+ make -j 4 && \
+ apt-get purge -y g++ gcc cmake pkg-config && \
+ apt-get clean -q -y && \
+ apt-get autoclean -q -y && \
+ apt-get autoremove -q -y && \
+ mkdir /bitmonero && \
+ mv /src/build/release/bin/* /bitmonero && \
+ rm -rf /src
+
+WORKDIR /bitmonero
+
+# Contains the blockchain
+VOLUME /root/.bitmonero
+
+# Generate your wallet via accessing the container and run:
+# cd /wallet
+# /./bitmonero/simplewallet
+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 ./bitmonerod --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 \ No newline at end of file