Dockerfile 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. FROM debian:bullseye
  2. RUN apt-get update \
  3. && apt-get install --yes --no-install-recommends \
  4. curl \
  5. jupyter-notebook \
  6. python3-distutils `# pyproj` \
  7. python3-geopandas \
  8. python3-xlrd \
  9. r-cran-irkernel \
  10. unzip \
  11. `# https://github.com/ResidentMario/geoplot/blob/master/setup.py` \
  12. python3-cartopy \
  13. python3-descartes \
  14. python3-matplotlib \
  15. python3-pip \
  16. python3-seaborn \
  17. python3-setuptools \
  18. python3-wheel \
  19. `# mapclassify->geoplot` \
  20. python3-deprecated \
  21. `# contextily->geoplot` \
  22. python3-geopy \
  23. python3-joblib \
  24. python3-pillow \
  25. python3-rasterio \
  26. python3-requests \
  27. `# https://github.com/rOpenGov/eurostat/blob/master/DESCRIPTION` \
  28. r-cran-broom \
  29. r-cran-classint \
  30. r-cran-dplyr \
  31. r-cran-httr \
  32. r-cran-jsonlite \
  33. r-cran-rcolorbrewer \
  34. r-cran-readr \
  35. r-cran-sf \
  36. r-cran-sp \
  37. r-cran-stringi \
  38. r-cran-stringr \
  39. r-cran-tibble \
  40. r-cran-tidyr \
  41. `# https://cran.r-project.org/web/packages/RefManageR/index.html ` \
  42. r-cran-bibtex \
  43. r-cran-lubridate \
  44. r-cran-xml2
  45. # TODO merge
  46. RUN apt-get update \
  47. && apt-get install --yes --no-install-recommends \
  48. python3-feather-format \
  49. `# https://cran.r-project.org/web/packages/geojsonio/index.html` \
  50. r-cran-maptools \
  51. r-cran-rgdal \
  52. r-cran-v8 \
  53. `# geojson->geojsonio ` \
  54. r-cran-lazyeval \
  55. `# protolite->geojson->geojsonio` \
  56. g++ \
  57. libprotobuf-dev \
  58. make
  59. RUN apt-get update \
  60. && apt-get install --yes --no-install-recommends \
  61. `# rgeos->geojsonio` \
  62. libgeos-dev \
  63. `# jqr->geojsonio` \
  64. libjq-dev \
  65. `# protolite->geojson->geojsonio` \
  66. protobuf-compiler
  67. RUN chgrp staff /usr/local/bin `# meranctile` \
  68. && chmod g+ws /usr/local/bin \
  69. && useradd --create-home --groups staff notebook
  70. USER notebook
  71. RUN pip3 install --system geoplot
  72. RUN Rscript -e 'install.packages("geojsonio")'
  73. RUN Rscript -e 'install.packages("eurostat")'
  74. VOLUME /home/notebook
  75. WORKDIR /home/notebook
  76. CMD ["jupyter", "notebook", "--ip=0.0.0.0"]