-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdockerfile
35 lines (29 loc) · 1 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
# Base image
FROM rocker/binder:latest
# Use root user for installations
USER root
# Install system dependencies for Python and Quarto
RUN apt-get update && apt-get install -y \
libkrb5-dev \
build-essential \
curl \
pandoc \
libcurl4-openssl-dev \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
# Install Quarto CLI
RUN curl -LO https://github.com/quarto-dev/quarto-cli/releases/download/v1.3.340/quarto-1.3.340-linux-amd64.deb \
&& dpkg -i quarto-1.3.340-linux-amd64.deb \
&& rm quarto-1.3.340-linux-amd64.deb
# Install Python packages
RUN pip install --no-cache-dir \
quarto \
jupyterlab-quarto \
geopandas pyproj shapely xarray rioxarray \
rasterio netcdf4 h5netcdf dask bottleneck nc-time-axis \
numpy pandas matplotlib requests \
rasterstats pygadm plotly pygris contextily tabulate \
scipy pysal splot gssapi arcgis jupyterlab
# Enable JupyterLab extension for Quarto
RUN jupyter labextension enable jupyterlab-quarto
# Start JupyterLab
CMD ["/init"]