From 2145bfcabfaf03fbea8f6819eeb99fcda78c7ca4 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Thu, 25 Apr 2019 17:05:30 -0300 Subject: [PATCH] install uvloop on wallet server docker image and default to it --- scripts/Dockerfile.wallet_server | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/Dockerfile.wallet_server b/scripts/Dockerfile.wallet_server index 260c00ac7..9524c7a62 100644 --- a/scripts/Dockerfile.wallet_server +++ b/scripts/Dockerfile.wallet_server @@ -25,6 +25,9 @@ RUN python3.7 -m pip install --upgrade pip setuptools # get torba RUN python3.7 -m pip install --user git+https://github.com/lbryio/torba.git#egg=torba +# get uvloop +RUN python3.7 -m pip install --user uvloop + # copy lbrynet RUN mkdir projects/ COPY . projects/lbry @@ -46,4 +49,5 @@ ENV DB_DIRECTORY=$db_dir ENV BANDWIDTH_LIMIT=1000000000000000000000000000000000000000000 ENV MAX_SESSIONS=1000000000 ENV MAX_SEND=1000000000000000000 +ENV EVENT_LOOP_POLICY=uvloop ENTRYPOINT ["/home/lbry/.local/bin/torba-server"]