-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
47 lines (35 loc) · 965 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
33
34
35
36
37
38
39
40
41
42
43
44
45
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 \
libgit2-dev \
curl
RUN mkdir -p ~/.R
# COPY ./Makevars /root/.R/Makevars
RUN install2.r --error --ncpus 2 --skipinstalled \
DT \
gtools \
shinyjs \
shinythemes \
shinyAce \
shinycssloaders \
curl \
xml2 \
V8 \
httr \
readxl \
remotes \
rstan \
bayesplot \
rstantools
RUN R -e 'remotes::install_github("JohnCoene/tippy")'
RUN Rscript -e "remotes::install_github('dmenne/gastempt')" \
&& rm -rf /tmp/downloaded_packages/ /tmp/*.rds \
&& rm -rf /var/lib/apt/lists/*
EXPOSE 3838
HEALTHCHECK --interval=60s --start-period=20s CMD curl --fail http://localhost:3838 || exit 1
CMD ["R", "-e", \
"shiny::runApp(system.file('shiny', package = 'gastempt'), \
host = '0.0.0.0', port = 3838)"]