set correct directory in Docker build

This commit is contained in:
Lex Berezhny 2019-06-20 18:21:48 -04:00
parent 133fceeee5
commit 7061a62e88

View file

@ -26,15 +26,19 @@ RUN python3.7 -m pip install --upgrade pip setuptools
RUN python3.7 -m pip install --user uvloop RUN python3.7 -m pip install --user uvloop
# copy lbrynet # copy lbrynet
RUN mkdir projects/ ARG projects_dir=/home/$user/projects
COPY . projects/lbry RUN mkdir $projects_dir
COPY . $projects_dir
USER root USER root
RUN chown -R $user:$user . RUN chown -R $user:$user .
USER $user USER $user
WORKDIR projects/lbry/torba
# install torba & lbry
WORKDIR $projects_dir/torba
RUN python3.7 -m pip install --user . RUN python3.7 -m pip install --user .
WORKDIR projects/lbry/lbry WORKDIR $projects_dir/lbry
RUN python3.7 -m pip install --user -e . && rm ~/.cache -rf RUN python3.7 -m pip install --user -e .
RUN rm ~/.cache -rf
# entry point # entry point
ARG host=0.0.0.0 ARG host=0.0.0.0