forked from digital-peaks/web-aoa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
45 lines (37 loc) · 1.07 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
FROM rocker/r-base:4.1.2
WORKDIR /app
RUN apt-get update && apt-get install -y \
curl \
build-essential \
gcc \
g++ \
make \
libssl-dev \
libudunits2-dev \
libgdal-dev
# See: https://github.com/nodesource/distributions/blob/master/README.md
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
RUN apt-get install -y \
nodejs=16.*
# install R packages
RUN R -e "install.packages('caret')"
RUN R -e "install.packages('CAST')"
RUN R -e "install.packages('gdalcubes')"
RUN R -e "install.packages('gdalUtils')"
RUN R -e "install.packages('ggplot2')"
RUN R -e "install.packages('mapview')"
RUN R -e "install.packages('raster')"
RUN R -e "install.packages('rgdal')"
RUN R -e "install.packages('rjson')"
RUN R -e "install.packages('rstac')"
RUN R -e "install.packages('sf')"
RUN R -e "install.packages('sp')"
RUN R -e "install.packages('randomForest')"
RUN R -e "install.packages('kernlab')"
RUN R -e "install.packages('testthat')"
COPY package*.json ./
# Install with a clean slate
RUN npm ci
COPY . .
ENTRYPOINT ["npm", "run"]
CMD ["start:prod"]