-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdockerfile-dev
44 lines (35 loc) · 1.25 KB
/
dockerfile-dev
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
# Base image
FROM jupyterhub/singleuser
# Copy the repository into the image
ADD . /AIR_QUALITY
# 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
# Expose necessary ports
EXPOSE 8888 4200
# Set the working directory
WORKDIR /AIR_QUALITY
# Start JupyterLab
ENTRYPOINT ["jupyter", "lab", "--ip=0.0.0.0", "--port=8888", "--NotebookApp.token=''", "--allow-root", "--no-browser"]