nucypher/dev/docker/Dockerfile

36 lines
1.1 KiB
Docker
Raw Normal View History

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
COPY ./nucypher/blockchain/eth/sol/__conf__.py /install/nucypher/blockchain/eth/sol/__conf__.py
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
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
RUN pip3 install .[dev] --src /usr/local/src
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
RUN python3 /install/setup.py develop
2019-03-28 22:41:45 +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"]