forked from nasa/Kamodo
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
38 lines (30 loc) · 1.33 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
FROM --platform=linux/amd64 continuumio/miniconda3:latest
LABEL maintainer "Asher Pembroke <apembroke@gmail.com>"
RUN conda install jupyter
RUN pip install antlr4-python3-runtime
# RUN pip install kamodo
WORKDIR /
# RUN git clone https://github.com/nasa/Kamodo.git
COPY . /Kamodo
RUN pip install -e Kamodo
# Add Tini. Tini operates as a process subreaper for jupyter. This prevents kernel crashes.
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", "--"]
WORKDIR Kamodo/docs/notebooks
CMD ["jupyter", "notebook", "--port=8888", "--no-browser", "--ip=0.0.0.0", "--allow-root"]
# CMD ["jupyter", "notebook", "./docs/notebooks", "--port=8888", "--no-browser", "--ip=0.0.0.0", "--allow-root"]
#####
# For Jupyter notebook interaction, use:
# docker run -p 8888:8888 dezeeuw/kamodo
# For command line interaction, use:
# docker run -it dezeeuw/kamodo /bin/bash
# -above, with current working directory mounted in container, use
# docker run -it --mount type=bind,source="$(pwd)",destination=/local,consistency=cached dezeeuw/kamodo /bin/bash
# -above, with persistent disk space, use
# docker run -it --mount source=kamododisk,target=/kdisk dezeeuw/kamodo /bin/bash
#
# Persistent disk space command
# docker volume create kamododisk
#