-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.dockerfile
More file actions
57 lines (50 loc) · 1.14 KB
/
Dockerfile.dockerfile
File metadata and controls
57 lines (50 loc) · 1.14 KB
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
# Use jupyter minimal notebook as base for your image
FROM jupyter/minimal-notebook
# Maintainer
LABEL maintainer="Kamyar Hasanzadeh (kamyar.hasanzadeh@helsinki.fi)"
# Root for system-level tools
USER root
ENV HOME /home/$NB_USER
# Install extra system tools
RUN apt-get update \
&& apt-get install -y --no-install-recommends ssh-client less \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
# Back to non-root
USER $NB_USER
# Install conda packages from conda-forge
RUN conda install --yes -c conda-forge \
# ---- Core Python ----
python=3.11 \
pip \
numpy \
pandas \
# ---- Plotting ----
matplotlib \
imageio \
contextily \
folium \
geojson \
# ---- Jupyter environment ----
jupyterlab \
jupyterlab-git \
jupyterhub \
notebook \
ipython \
ipykernel \
# ---- GIS core ----
geopandas>=0.13 \
shapely>=2.0\
mapclassify \
osmnx \
requests \
sqlalchemy \
rasterio \
rioxarray \
xarray \
scipy \
owslib \
rtree \
pexpect>=4.9\
&& conda clean -afy
# Build JupyterLab (optional)
RUN jupyter lab build --dev-build=False --minimize=False