-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
51 lines (39 loc) · 1.2 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
46
47
48
49
50
FROM rocker/r-base:latest
LABEL maintainer="[email protected]"
RUN apt-get update -qq && apt-get -y --no-install-recommends install \
libv8-dev \
libxml2-dev \
libcurl4-openssl-dev \
curl
RUN install2.r --error --ncpus 6 --skipinstalled \
DT \
gtools \
shiny \
shinyjs \
shinythemes \
tidyverse \
shinyAce \
shinyBS \
shinycssloaders \
curl \
xml2 \
V8 \
httr \
markdown \
remotes
RUN mkdir -p ~/.R
RUN echo "CXX14FLAGS=-O3 -Wno-unused-variable -Wno-unused-function -Wno-macro-redefined -Wno-deprecated-declarations -Wno-ignored-attributes" >> ~/.R/Makevars
RUN install2.r --error --ncpus 6 --skipinstalled \
rstan \
bayesplot \
rstantools
RUN Rscript -e "remotes::install_github(paste0('dmenne/', \
c( 'breathtestcore', 'breathtestshiny')))"
RUN Rscript -e "remotes::install_github('dmenne/breathteststan')" \
&& rm -rf /tmp/downloaded_packages/ /tmp/*.rds \
&& rm -rf /var/lib/apt/lists/*
EXPOSE 3838
HEALTHCHECK --interval=60s --start-period=20s CMD curl -I --fail http://localhost:3838 || exit 1
CMD ["R", "-e", \
"shiny::runApp(system.file('shiny', package = 'breathtestshiny'), \
host = '0.0.0.0', port = 3838)"]