diff --git a/images/arcgis/Dockerfile b/images/arcgis/Dockerfile index e5c5d5f..1e195e0 100644 --- a/images/arcgis/Dockerfile +++ b/images/arcgis/Dockerfile @@ -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 arcgis-map-ipywidget@2.0.0 # 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 diff --git a/images/arcgis/Dockerfile_works b/images/arcgis/Dockerfile_works new file mode 100644 index 0000000..e5c5d5f --- /dev/null +++ b/images/arcgis/Dockerfile_works @@ -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 arcgis-map-ipywidget@2.0.0 + +# 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}"