-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
70 lines (60 loc) · 1.75 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#
# base-image:tag
#
# FROM continuumio/anaconda3:latest
FROM continuumio/anaconda3:2021.05
#
# time zone to Asia/Tokyo
#
ENV TZ=Asia/Tokyo
#
# upgrade pip and instlal required python packages
#
RUN pip install --upgrade pip && \
pip install numpy && \
pip install pandas && \
pip install geopandas && \
pip install Keras && \
pip install keplergl && \
pip install sodapy && \
pip install shapely && \
pip install folium
#
# install rust, cargo, and additional codes for rust build
#
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable
ENV PATH="/root/.cargo/bin:$PATH"
#
# install excavator
#
RUN apt update \
&& apt install -y build-essential \
&& cargo install --git /~https://github.com/ichnion/excavator --branch develop
#
# create working directory for jupyter notebook
#
WORKDIR /workdir
#
# listen port of container
#
EXPOSE 8888
#
# ENTRYPOINT: startup command when launching container(without overwriting 'docker run')
# "jupyter-notebook" => launching command jupyter-notebook
# "--ip=0.0.0.0" => no IP restriction
# "--port=8888" => port number
# ”--no-browser” => no browser
# "--allow-root" => add root credential, only for personal use
# "--NotebookApp.token=''" => launch withouth token
#
ENTRYPOINT ["jupyter-notebook", "--ip=0.0.0.0", "--port=8888", "--no-browser", "--allow-root", "--NotebookApp.token=''"]
#
# CMD: startup command when launching container(with overwriting 'docker run')
# "--notebook-dir=/workdir" => working directory of juypter notebook
#
CMD ["--notebook-dir=/workdir"]
#
# docker builder prune
# docker build -t codeformyself_excavator_ws_image:2021.06 .
# docker save codeformyself_excavator_ws_image -o codeformyself_excavator_ws_image.tar
#