2022-01-22 09:08:59 +00:00
|
|
|
FROM nucypher/rust-python:3.9.9
|
2019-03-13 00:31:49 +00:00
|
|
|
ENV PYTHONUNBUFFERED 1
|
2019-03-28 22:41:45 +00:00
|
|
|
ENV PYTHONPATH /code
|
2019-03-13 00:31:49 +00:00
|
|
|
|
|
|
|
# Update
|
2021-01-06 00:20:31 +00:00
|
|
|
RUN apt-get update -y && apt-get upgrade -y && apt-get install patch gcc libffi-dev wget git -y
|
2019-03-13 00:31:49 +00:00
|
|
|
|
2019-03-28 22:41:45 +00:00
|
|
|
# make an install directory
|
|
|
|
RUN mkdir /install
|
2019-05-27 05:13:46 +00:00
|
|
|
WORKDIR /install
|
2019-03-13 00:31:49 +00:00
|
|
|
|
2019-03-28 22:41:45 +00:00
|
|
|
# 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
|
2020-01-29 14:56:43 +00:00
|
|
|
COPY ./nucypher/blockchain/eth/sol/__conf__.py /install/nucypher/blockchain/eth/sol/__conf__.py
|
2020-01-29 13:07:20 +00:00
|
|
|
COPY scripts/installation/install_solc.py /install/scripts/installation/
|
2019-03-28 22:41:45 +00:00
|
|
|
COPY dev-requirements.txt /install
|
|
|
|
COPY requirements.txt /install
|
2020-06-17 18:31:48 +00:00
|
|
|
COPY docs-requirements.txt /install
|
2019-03-28 22:41:45 +00:00
|
|
|
COPY dev/docker/scripts/install/entrypoint.sh /install
|
2019-03-13 00:31:49 +00:00
|
|
|
|
|
|
|
# install reqs and solc
|
2019-03-28 22:41:45 +00:00
|
|
|
RUN pip install --upgrade pip
|
2020-06-17 18:31:48 +00:00
|
|
|
RUN pip3 install .[dev] --src /usr/local/src
|
2020-02-04 17:12:09 +00:00
|
|
|
RUN pip3 install ipdb
|
2019-03-13 00:31:49 +00:00
|
|
|
|
2019-03-28 22:41:45 +00:00
|
|
|
# puts the nucypher executable in bin path
|
2020-01-29 13:07:20 +00:00
|
|
|
RUN python3 /install/setup.py develop
|
2019-03-28 22:41:45 +00:00
|
|
|
|
2020-05-07 00:56:27 +00:00
|
|
|
# now install solc
|
|
|
|
RUN python3 /install/scripts/installation/install_solc.py
|
|
|
|
|
2019-03-28 22:41:45 +00:00
|
|
|
# this gets called after volumes are mounted and so can modify the local disk
|
2019-03-28 23:10:47 +00:00
|
|
|
CMD ["/install/entrypoint.sh"]
|