forked from LTREB-reservoirs/vera4cast
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
58 lines (44 loc) · 1.76 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
FROM rocker/geospatial:latest
# Import GitHub Secret
#ARG GITHUB_PAT
#ENV GITHUB_PAT=$GITHUB_PAT
# Declares build arguments
# ARG NB_USER
# ARG NB_UID
# COPY --chown=${NB_USER} . ${HOME}
#USER root
RUN apt-get update && apt-get -y install cron
RUN apt-get update && apt-get -y install jags
RUN apt-get update && apt-get -y install libgd-dev
RUN apt-get update && apt-get -y install libnetcdf-dev
RUN sudo update-ca-certificates
#USER ${NB_USER}
RUN apt-get -y install python3 python3-pip
RUN install2.r devtools remotes reticulate
RUN R -e "remotes::install_github('cboettig/minioclient')"
RUN sleep 180
RUN R -e "remotes::install_github('eco4cast/stac4cast')"
RUN sleep 180
RUN R -e "remotes::install_github('eco4cast/EFIstandards')"
RUN sleep 180
RUN R -e "remotes::install_github('cboettig/aws.s3')"
RUN sleep 180
RUN R -e "remotes::install_github('eco4cast/score4cast')"
RUN sleep 180
RUN R -e "remotes::install_github('EcoForecast/ecoforecastR')"
RUN sleep 180
RUN R -e "remotes::install_github('eco4cast/neon4cast')"
RUN sleep 180
RUN R -e "remotes::install_github('cboettig/prov')"
RUN sleep 180
RUN R -e "remotes::install_github('eco4cast/read4cast')"
RUN sleep 180
RUN R -e "remotes::install_github('eco4cast/gefs4cast')"
RUN sleep 180
RUN R -e "remotes::install_github('mitchelloharawild/distributional', ref = 'bb0427e')"
RUN install2.r arrow renv rjags neonstore ISOweek RNetCDF fable fabletools forecast imputeTS duckdbfs gsheet
RUN install2.r ncdf4 scoringRules tidybayes tidync udunits2 bench contentid yaml RCurl here feasts future furrr jsonlite
#RUN R -e "reticulate::install_python(version = '3.9:latest', list = FALSE, force = FALSE)"
COPY cron.sh /etc/services.d/cron/run
COPY DESCRIPTION /tmp/DESCRIPTION
RUN R -e 'remotes::install_deps("/tmp", dep=TRUE, upgrade=TRUE)'