Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM nucypher/rust-python:3.9.9
- ENV PYTHONUNBUFFERED 1
- ENV PYTHONPATH /code
- RUN whoami
- # Update
- #USER root
- RUN apt-get update -y && apt-get upgrade -y && apt-get install patch gcc libffi-dev wget git -y
- USER $USER
- # make an install directory
- RUN mkdir /install
- WORKDIR /install
- # copy only the exact files needed for install into the container
- COPY ./nucypher/__about__.py /install/nucypher/
- COPY README.md /install
- COPY setup.py /install
- COPY ./nucypher/blockchain/eth/sol/__conf__.py /install/nucypher/blockchain/eth/sol/__conf__.py
- COPY scripts/installation/install_solc.py /install/scripts/installation/
- COPY dev-requirements.txt /install
- COPY requirements.txt /install
- COPY docs-requirements.txt /install
- COPY dev/docker/scripts/install/entrypoint.sh /install
- # install reqs and solc
- RUN pip install --upgrade pip
- RUN pip3 install .[dev] --src /usr/local/src
- RUN pip3 install ipdb
- # puts the nucypher executable in bin path
- RUN python3 /install/setup.py develop
- # now install solc
- RUN python3 /install/scripts/installation/install_solc.py
- # this gets called after volumes are mounted and so can modify the local disk
- CMD ["/install/entrypoint.sh"]
Advertisement
Add Comment
Please, Sign In to add comment