-
Notifications
You must be signed in to change notification settings - Fork 67
Expand file tree
/
Copy pathDockerfile-notebooks
More file actions
32 lines (23 loc) · 918 Bytes
/
Dockerfile-notebooks
File metadata and controls
32 lines (23 loc) · 918 Bytes
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
FROM ghcr.io/osgeo/gdal:ubuntu-small-latest
# Install system python pip and venv
RUN apt-get update && apt-get -y install python3-pip python3-venv build-essential
# Create a virtual environment
RUN python3 -m venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH"
# Upgrade pip inside venv
RUN pip install --upgrade pip setuptools wheel
# Install your Python dependencies inside the venv
RUN pip install jupyter
RUN pip install rasterio OWSLib GDAL matplotlib netCDF4 numpy
RUN pip install s3fs zarr
# Create notebook directories
RUN mkdir -p /notebooks/notebooks/tmp /notebooks/notebooks/notebook_helpers
# Copy your requirements and install
COPY ./docs/notebook_helpers/requirements.txt /notebooks/notebook_helpers/
WORKDIR /notebooks
RUN pip install -r notebook_helpers/requirements.txt
# Copy notebooks and config
COPY ./docs .
COPY ./config /config
# Set entrypoint
ENTRYPOINT notebook_helpers/run-jupyter-docker