Parcourir la source

added geoplot python package

https://git.hammerle.me/fphammerle/european-pollutant-release-plot-test/commit/cb0edd17b7b4dd4b4933e2698769e42af6eb75ae
Fabian Peter Hammerle il y a 5 ans
Parent
commit
4e2b2aa825
1 fichiers modifiés avec 28 ajouts et 1 suppressions
  1. 28 1
      Dockerfile

+ 28 - 1
Dockerfile

@@ -33,10 +33,37 @@ RUN apt-get update \
 RUN apt-get update \
     && apt-get install --yes --no-install-recommends \
         python3-distutils `# pyproj`
+RUN apt-get update \
+    && apt-get install --yes --no-install-recommends \
+        `# https://github.com/ResidentMario/geoplot/blob/master/setup.py` \
+        python3-cartopy \
+        python3-descartes \
+        python3-matplotlib \
+        python3-pip \
+        python3-seaborn \
+        python3-setuptools
+RUN apt-get update \
+    && apt-get install --yes --no-install-recommends \
+        `# https://github.com/ResidentMario/geoplot/blob/master/setup.py` \
+        python3-wheel
+RUN apt-get update \
+    && apt-get install --yes --no-install-recommends \
+        `# mapclassify->geoplot` \
+        python3-deprecated \
+        `# contextily->geoplot` \
+        python3-geopy \
+        python3-joblib \
+        python3-pillow \
+        python3-rasterio \
+        python3-requests
 
-RUN useradd --create-home --groups staff notebook
+RUN chgrp staff /usr/local/bin `# meranctile` \
+    && chmod g+ws /usr/local/bin \
+    && useradd --create-home --groups staff notebook
 USER notebook
 
+RUN pip3 install --system geoplot
+
 RUN Rscript -e 'install.packages("eurostat")'
 
 VOLUME /home/notebook