Guest User

Dockerfile

a guest
Apr 24th, 2022
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. FROM nucypher/rust-python:3.9.9
  2. ENV PYTHONUNBUFFERED 1
  3. ENV PYTHONPATH /code
  4.  
  5. RUN whoami
  6. # Update
  7.  
  8. #USER root
  9. RUN apt-get update -y && apt-get upgrade -y && apt-get install patch gcc libffi-dev wget git -y
  10. USER $USER
  11.  
  12. # make an install directory
  13. RUN mkdir /install
  14. WORKDIR /install
  15.  
  16. # copy only the exact files needed for install into the container
  17. COPY ./nucypher/__about__.py /install/nucypher/
  18. COPY README.md /install
  19. COPY setup.py /install
  20. COPY ./nucypher/blockchain/eth/sol/__conf__.py /install/nucypher/blockchain/eth/sol/__conf__.py
  21. COPY scripts/installation/install_solc.py /install/scripts/installation/
  22. COPY dev-requirements.txt /install
  23. COPY requirements.txt /install
  24. COPY docs-requirements.txt /install
  25. COPY dev/docker/scripts/install/entrypoint.sh /install
  26.  
  27. # install reqs and solc
  28. RUN pip install --upgrade pip
  29. RUN pip3 install .[dev] --src /usr/local/src
  30. RUN pip3 install ipdb
  31.  
  32. # puts the nucypher executable in bin path
  33. RUN python3 /install/setup.py develop
  34.  
  35. # now install solc
  36. RUN python3 /install/scripts/installation/install_solc.py
  37.  
  38. # this gets called after volumes are mounted and so can modify the local disk
  39. CMD ["/install/entrypoint.sh"]
  40.  
Advertisement
Add Comment
Please, Sign In to add comment