-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (24 loc) · 851 Bytes
/
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
FROM jupyter/base-notebook:latest
LABEL maintainer="Iosefa Percival"
LABEL repo="https://github.com/iosefa/PyForestScan"
USER root
RUN apt-get update -y && apt-get install -y \
gcc g++ make \
libgdal-dev libgl1 sqlite3 && \
apt-get clean && rm -rf /var/lib/apt/lists/*
RUN fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"
USER 1000
RUN mamba install -c conda-forge sqlite gdal pdal -y && \
pip install --no-cache-dir pyforestscan jupyter-server-proxy && \
mamba update -c conda-forge -y && \
jupyter server extension enable --sys-prefix jupyter_server_proxy
RUN mkdir ./examples
COPY /docs/examples ./examples
RUN mkdir ./example_data
COPY /docs/example_data ./example_data
ENV PROJ_LIB='/opt/conda/share/proj'
ENV JUPYTER_ENABLE_LAB=yes
USER root
RUN chown -R ${NB_UID} ${HOME}
USER ${NB_USER}