-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
29 lines (21 loc) · 1.48 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
# Load R image
FROM rocker/r-ver:4.3.0
# DeGAUSS container metadata
ENV degauss_name="daymet_chicago"
ENV degauss_version="0.1.1"
ENV degauss_description="daymet climate variables for chicago"
ENV degauss_argument="short description of optional argument [default: 'insert_default_value_here']"
# add OCI labels based on environment variables too
LABEL "org.degauss.name"="${degauss_name}"
LABEL "org.degauss.version"="${degauss_version}"
LABEL "org.degauss.description"="${degauss_description}"
LABEL "org.degauss.argument"="${degauss_argument}"
WORKDIR /app
RUN apt-get update -y
RUN apt-get install libxml2-dev zlib1g-dev libfontconfig1-dev libssl-dev libcurl4-openssl-dev libharfbuzz-dev libfribidi-dev libfreetype6-dev libpng-dev libtiff5-dev libjpeg-dev libudunits2-dev cmake libnetcdf-dev libgdal-dev libgeos-dev libproj-dev libsqlite0-dev -y
# Install R dependencies
RUN R -e "install.packages(c('daymetr', 'tidyverse', 'terra', 'gtools', 'data.table', 'remotes', 'withr'))"
RUN R --quiet -e "remotes::install_github('degauss-org/dht')"
COPY tmax_daily_2016_ncss.nc tmax_daily_2017_ncss.nc tmax_daily_2018_ncss.nc tmax_daily_2019_ncss.nc tmax_daily_2020_ncss.nc tmax_daily_2021_ncss.nc tmax_daily_2022_ncss.nc tmin_daily_2016_ncss.nc tmin_daily_2017_ncss.nc tmin_daily_2018_ncss.nc tmin_daily_2019_ncss.nc tmin_daily_2020_ncss.nc tmin_daily_2021_ncss.nc tmin_daily_2022_ncss.nc entrypoint.R .
WORKDIR /tmp
ENTRYPOINT ["/usr/local/bin/Rscript", "/app/entrypoint.R"]