-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
40 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,14 @@ | ||
# | ||
FROM jupyter/base-notebook:lab-2.2.9 | ||
|
||
RUN conda install --yes 'jupyter-server-proxy=3.2.2' && \ | ||
conda clean --all -f -y | ||
|
||
RUN conda install --yes -c esri 'arcgis=2.0.0' && \ | ||
conda clean --all -f -y | ||
RUN conda install --yes rasterio xarray geopandas && conda clean --all -f -y | ||
RUN mamba update -c esri 'arcgis=2.0.0' | ||
RUN mamba update rasterio xarray geopandas | ||
|
||
RUN jupyter labextension install @jupyter-widgets/jupyterlab-manager@2 && \ | ||
jupyter labextension install [email protected] | ||
|
||
# version control for jupyter notebooks | ||
RUN conda install --yes jupytext -c conda-forge && conda clean --all -f -y | ||
RUN mamba update jupytext | ||
|
||
COPY apt.txt /tmp/apt.txt | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# | ||
FROM jupyter/base-notebook:lab-2.2.9 | ||
|
||
RUN conda install --yes 'jupyter-server-proxy=3.2.2' && \ | ||
conda clean --all -f -y | ||
|
||
RUN conda install --yes -c esri 'arcgis=2.0.0' && \ | ||
conda clean --all -f -y | ||
RUN conda install --yes rasterio xarray geopandas && conda clean --all -f -y | ||
|
||
RUN jupyter labextension install @jupyter-widgets/jupyterlab-manager@2 && \ | ||
jupyter labextension install [email protected] | ||
|
||
# version control for jupyter notebooks | ||
RUN conda install --yes jupytext -c conda-forge && conda clean --all -f -y | ||
|
||
COPY apt.txt /tmp/apt.txt | ||
|
||
USER root | ||
|
||
RUN echo "Installing Apt-get packages..." \ | ||
&& apt-get update --fix-missing > /dev/null \ | ||
&& apt-get install -y apt-utils wget zip tzdata > /dev/null \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN echo "Installing helpful packages..." \ | ||
&& apt-get update --fix-missing > /dev/null \ | ||
# Read apt.txt line by line, and execute apt-get install -y for each line in apt.txt | ||
&& xargs -a /tmp/apt.txt apt-get install -y \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
USER ${NB_USER} | ||
|
||
RUN fix-permissions "${CONDA_DIR}" && \ | ||
fix-permissions "/home/${NB_USER}" |