-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
40 lines (29 loc) · 1.05 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
FROM rocker/r-ver:4.1.2
ENV degauss_name="fortunes"
ENV degauss_version="0.1.3"
ENV degauss_description="random quotes"
ENV degauss_argument="number of quotes to print [default: 1]"
# add 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}"
RUN R --quiet -e "install.packages('remotes', repos = c(CRAN = 'https://packagemanager.rstudio.com/all/__linux__/focal/latest'))"
RUN R --quiet -e "remotes::install_github('rstudio/[email protected]')"
WORKDIR /app
RUN apt-get update \
&& apt-get install -yqq --no-install-recommends \
libgit2-dev \
libcurl4-openssl-dev \
libssl-dev \
libudunits2-dev \
libgdal-dev \
libgeos-dev \
libproj-dev \
&& apt-get clean
COPY renv.lock .
RUN R --quiet -e "renv::restore(repos = c(CRAN = 'https://cran.rstudio.com'))"
# COPY geomarker_data.rds .
COPY entrypoint.R .
WORKDIR /tmp
ENTRYPOINT ["/app/entrypoint.R"]