From 7061a62e889591cbdcf1da45a0e047528db354d9 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Thu, 20 Jun 2019 18:21:48 -0400 Subject: [PATCH] set correct directory in Docker build --- lbry/scripts/Dockerfile.wallet_server | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/lbry/scripts/Dockerfile.wallet_server b/lbry/scripts/Dockerfile.wallet_server index 3739e147f..6178ded9b 100644 --- a/lbry/scripts/Dockerfile.wallet_server +++ b/lbry/scripts/Dockerfile.wallet_server @@ -26,15 +26,19 @@ RUN python3.7 -m pip install --upgrade pip setuptools RUN python3.7 -m pip install --user uvloop # copy lbrynet -RUN mkdir projects/ -COPY . projects/lbry +ARG projects_dir=/home/$user/projects +RUN mkdir $projects_dir +COPY . $projects_dir USER root RUN chown -R $user:$user . USER $user -WORKDIR projects/lbry/torba + +# install torba & lbry +WORKDIR $projects_dir/torba RUN python3.7 -m pip install --user . -WORKDIR projects/lbry/lbry -RUN python3.7 -m pip install --user -e . && rm ~/.cache -rf +WORKDIR $projects_dir/lbry +RUN python3.7 -m pip install --user -e . +RUN rm ~/.cache -rf # entry point ARG host=0.0.0.0