Dockerfile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # # https://hub.docker.com/layers/jupyter/r-notebook/7a0c7325e470/images/sha256-4bfbe56214c89bb4e5975ed6ed3837b29d348c524669b4e2328c1487b7822e5b
  2. # FROM jupyter/r-notebook@sha256:4bfbe56214c89bb4e5975ed6ed3837b29d348c524669b4e2328c1487b7822e5b
  3. #
  4. # # RUN conda install udunits2
  5. #
  6. # USER 0
  7. # RUN apt-get update \
  8. # && sudo apt-get install --yes --no-install-recommends \
  9. # libgdal-dev \
  10. # libudunits2-dev
  11. #
  12. # USER 1000
  13. FROM debian:bullseye-slim
  14. RUN apt-get update \
  15. && apt-get install --yes --no-install-recommends \
  16. jupyter-notebook \
  17. r-cran-irkernel \
  18. `# https://github.com/rOpenGov/eurostat/blob/master/DESCRIPTION` \
  19. r-cran-broom \
  20. r-cran-classint \
  21. r-cran-dplyr \
  22. r-cran-httr \
  23. r-cran-jsonlite \
  24. r-cran-rcolorbrewer \
  25. r-cran-readr \
  26. r-cran-sf \
  27. r-cran-sp \
  28. r-cran-stringi \
  29. r-cran-stringr \
  30. r-cran-tibble \
  31. r-cran-tidyr
  32. # TODO merge
  33. RUN apt-get install --yes --no-install-recommends \
  34. `# https://cran.r-project.org/web/packages/RefManageR/index.html ` \
  35. r-cran-bibtex \
  36. r-cran-lubridate \
  37. r-cran-xml2
  38. RUN useradd --create-home --groups staff notebook
  39. USER notebook
  40. RUN Rscript -e 'install.packages("eurostat")'
  41. WORKDIR /home/notebook
  42. CMD ["jupyter", "notebook", "--ip=0.0.0.0"]