-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathDockerfile
30 lines (21 loc) · 947 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM corilo/corems:base-mono-pythonnet AS base
WORKDIR /home/corems
COPY corems/ /home/corems/corems
COPY README.md disclaimer.txt requirements.txt setup.py /home/corems/
RUN python3 -m pip install -U pip
RUN python3 -m pip install -U -r requirements.txt
RUN python3 setup.py install
RUN rm -f -r /home/corems/corems
RUN rm /home/corems/setup.py
#RUN apt update && apt install -y --no-install-recommends build-essential
FROM base AS build
COPY --from=base /home/corems /home/corems
WORKDIR /home/corems
COPY examples/notebooks/*.ipynb README.md disclaimer.txt requirements.txt SettingsCoreMS.json /home/corems/
COPY examples/scripts /home/corems/examples
RUN python3 -m pip install jupyter
ENV TINI_VERSION v0.6.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /usr/bin/tini
RUN chmod +x /usr/bin/tini
ENTRYPOINT ["/usr/bin/tini", "--"]
CMD jupyter notebook --port=8888 --no-browser --ip=0.0.0.0 --allow-root