2019-03-13 00:31:49 +00:00
|
|
|
FROM python:3.7.0
|
|
|
|
ENV PYTHONUNBUFFERED 1
|
2019-03-28 22:41:45 +00:00
|
|
|
ENV PYTHONPATH /code
|
2019-03-13 00:31:49 +00:00
|
|
|
|
|
|
|
# Update
|
2019-03-13 23:21:45 +00:00
|
|
|
RUN apt-get update -y && apt-get upgrade -y && apt-get install 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-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 scripts/installation/install_solc.sh /install
|
|
|
|
COPY dev-requirements.txt /install
|
|
|
|
COPY requirements.txt /install
|
|
|
|
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 -r /install/dev-requirements.txt --src /usr/local/src
|
|
|
|
RUN /install/install_solc.sh
|
2019-03-13 00:31:49 +00:00
|
|
|
|
2019-03-28 22:41:45 +00:00
|
|
|
# puts the nucypher executable in bin path
|
|
|
|
RUN python /install/setup.py develop
|
|
|
|
|
|
|
|
# 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"]
|