-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (28 loc) · 1.17 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
ARG BASE_CONTAINER=ucsdets/datahub-base-notebook:2023.2-stable
FROM $BASE_CONTAINER
LABEL maintainer="UC San Diego ITS/ETS <[email protected]>"
USER root
######################### ##
# Requested for DSC170 WI23
COPY requirements.txt /home/jovyan
RUN apt update -y && \
apt-get install software-properties-common -y && \
add-apt-repository universe && \
apt update -y && \
apt install graphviz -y
RUN mamba install -c esri arcgis=2.2.0 numpy=1.26.2 -y
RUN pip install --upgrade pip setuptools wheel
RUN pip install --upgrade nbconvert
RUN mamba install -c conda-forge geopandas cartopy pygeos pysal contextily osmnx jupyterlab_widgets -y
RUN pip uninstall pillow fiona -y && \
pip install -r ~/requirements.txt && \
pip install --upgrade fiona
RUN jupyter nbextension enable --py widgetsnbextension --sys-prefix && \
jupyter labextension install @jupyter-widgets/jupyterlab-manager && \
jupyter labextension install [email protected]
RUN jupyter nbextension enable --py --sys-prefix arcgis && \
jupyter nbextension enable --py --sys-prefix arcgis
USER $NB_UID
COPY arcgis_test.ipynb /opt
RUN rm -rf /home/jovyan/requirements.txt
ENV USE_PYGEOS=0