Dockerfile 2.0 KB

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