@@ -2,7 +2,8 @@ ARG python_version="3.11"
2
2
FROM quay.io/jupyter/minimal-notebook:python-${python_version}
3
3
4
4
ARG python_version
5
- ARG arcgis_version="2.4.0"
5
+ ARG arcgis_version="2.4.1"
6
+ ARG gdal_version="3.10.2"
6
7
ARG sampleslink="https://github.com/Esri/arcgis-python-api/releases/download/v${arcgis_version}/samples.zip"
7
8
ARG githubfolder="arcgis-python-api"
8
9
ARG env_name=arcgis
@@ -14,14 +15,26 @@ LABEL org.opencontainers.image.source=https://github.com/Esri/arcgis-python-api
14
15
15
16
USER ${NB_UID}
16
17
17
- # Install Python API from Conda
18
- RUN conda create -n ${env_name} -c esri -c defaults arcgis=${arcgis_version} python=${python_version} -y --quiet --override-channels \
18
+ # Create conda environment with specified python version
19
+ RUN conda create -n ${env_name} -c conda-forge python=${python_version} -y --quiet --override-channels \
20
+ && conda clean --all -f -y \
21
+ && find /opt/conda -name __pycache__ -type d -exec rm -rf {} +
22
+
23
+ # Install gdal
24
+ RUN conda install -n ${env_name} -c conda-forge gdal=${gdal_version} -y --quiet --override-channels \
25
+ && conda clean --all -f -y \
26
+ && find /opt/conda -name __pycache__ -type d -exec rm -rf {} +
27
+
28
+ # Install ArcGIS API for Python from pypi
29
+ RUN . activate ${env_name} \
30
+ && python -m pip install arcgis==${arcgis_version} \
19
31
&& conda clean --all -f -y \
20
32
&& find /opt/conda -name __pycache__ -type d -exec rm -rf {} +
21
33
22
34
# Install arcgis-mapping if arcgis_version >= 2.4.0
23
35
RUN (dpkg --compare-versions $arcgis_version ge 2.4.0 \
24
- && conda install -n ${env_name} -c esri -c defaults arcgis-mapping -y --quiet --override-channels \
36
+ && . activate ${env_name} \
37
+ && python -m pip install arcgis-mapping \
25
38
&& conda clean --all -f -y \
26
39
&& find /opt/conda -name __pycache__ -type d -exec rm -rf {} +;) \
27
40
|| echo "[INFO] Skipped installing arcgis-mapping for version $arcgis_version (>= 2.4.0 required for arcgis-mapping)"
0 commit comments