-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
20 lines (17 loc) · 751 Bytes
/
Dockerfile
File metadata and controls
20 lines (17 loc) · 751 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
## kasiatemp/ng-update:daily
## kasiatemp/carbon-intensity-data
FROM rocker/r-ver:4.0.3
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
xml2 \
openssl \
curl \
git \
libcurl4-openssl-dev
# copy R scripts and install dependencies
RUN R -e "install.packages('intensegRid'); if (!library(intensegRid, logical.return=T)) quit(status=10)" \
&& R -e "install.packages('dplyr'); if (!library(dplyr, logical.return=T)) quit(status=10)" \
&& R -e "install.packages('lubridate'); if (!library(lubridate, logical.return=T)) quit(status=10)" \
&& R -e "install.packages('logger'); if (!library(logger, logical.return=T)) quit(status=10)"
#COPY data /home/data
#COPY data-raw /home/data-raw