-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (28 loc) · 957 Bytes
/
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
FROM rocker/r-ver:4.4.1
# Install required system dependencies for R packages
RUN apt-get update && apt-get install -y \
libcurl4-openssl-dev \
libssl-dev \
libxml2-dev \
libfontconfig1-dev \
libfreetype6-dev \
libpng-dev \
libtiff5-dev \
libjpeg-dev \
zlib1g-dev \
pkg-config \
libharfbuzz-dev \
libfribidi-dev \
git \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Install required R packages
RUN R -e "install.packages(c('dplyr', 'httr2', 'tibble', 'jsonlite', 'rmarkdown', 'testthat', 'tidyselect' ,'withr'), repos='http://cran.rstudio.com/')"
RUN R -e "install.packages('devtools', repos='https://cloud.r-project.org/')"
# Copy your R script and test script into the Docker image
COPY R/datastreamr.R /datastreamr/R/datastreamr.R
COPY R/util.R /datastreamr/R/util.R
COPY R/fetch.R /datastreamr/R/fetch.R
COPY tests /datastreamr/tests
# Set the working directory
WORKDIR /datastreamr