-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (19 loc) · 1.03 KB
/
Dockerfile
File metadata and controls
24 lines (19 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM --platform=amd64 jupyter/r-notebook:python-3.10
# Most springtime dependencies can be added from conda channels
COPY --chown=${NB_UID}:${NB_GID} environment.yml /tmp/
RUN mamba env update --name base --file /tmp/environment.yml &&\
mamba clean --all -f -y && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"
# Additional R dependencies not available on conda channels
RUN Rscript -e 'devtools::install_github("bluegreen-labs/phenor", upgrade="never")'
RUN Rscript -e 'devtools::install_github("ropensci/rppo", upgrade="never")'
RUN Rscript -e 'install.packages(c("daymetr", "MODISTools", "phenocamr", "rnpn"), repos = "http://cran.us.r-project.org")'
# Install springtime + bonus packages
RUN pip install 'springtime[extras] @ git+https://github.com/phenology/springtime.git'
# Editable install of cloned repo
# WORKDIR /home/jovyan
# COPY --chown=${NB_UID}:${NB_GID} . springtime
# RUN pip install -e .
# Add label to link to repo
LABEL org.opencontainers.image.source https://github.com/phenology/springtime