From 9f9ec692c78a9afe6b82e8e0c3de0616251b0934 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Sun, 13 Jan 2019 23:09:19 -0500 Subject: [PATCH] orchstr8 docker for lbry --- .dockerignore | 7 +++++++ scripts/Dockerfile.lbry_orchstr8 | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 .dockerignore create mode 100644 scripts/Dockerfile.lbry_orchstr8 diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 000000000..e4467ee5b --- /dev/null +++ b/.dockerignore @@ -0,0 +1,7 @@ +.git +.tox +__pycache__ +dist +lbrynet.egg-info +docs +tests diff --git a/scripts/Dockerfile.lbry_orchstr8 b/scripts/Dockerfile.lbry_orchstr8 new file mode 100644 index 000000000..b63fba25d --- /dev/null +++ b/scripts/Dockerfile.lbry_orchstr8 @@ -0,0 +1,32 @@ +FROM debian:buster-slim + +RUN apt-get update && \ + apt-get upgrade -y && \ + apt-get install -y --no-install-recommends \ + build-essential \ + git \ + python3.7 \ + python3.7-dev \ + python3-pip && \ + rm -rf /var/lib/apt/lists/* + +RUN python3.7 -m pip install --upgrade pip setuptools wheel + +COPY . /app +WORKDIR /app + +RUN python3.7 -m pip install git+https://github.com/lbryio/torba.git#egg=torba +RUN python3.7 -m pip install -e . + +# Orchstr8 API +EXPOSE 7954 +# Wallet Server +EXPOSE 5280 +# SPV Server +EXPOSE 50002 +# blockchain +EXPOSE 9246 +ENV TORBA_LEDGER lbrynet.extras.wallet + +RUN /usr/local/bin/orchstr8 download +ENTRYPOINT ["/usr/local/bin/orchstr8"]