-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (15 loc) · 823 Bytes
/
Dockerfile
File metadata and controls
23 lines (15 loc) · 823 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM rocker/rstudio:3.5.3
# load shiny into rstudio image (see https://github.com/rocker-org/shiny/pull/31/)
EXPOSE 3838
RUN export ADD="shiny" && \
bash /etc/cont-init.d/add
COPY ./src /srv/shiny-server/src
# install system package needed for some R packages
RUN apt-get update && apt-get install -y --no-install-recommends libssl-dev apt-utils locales-all
# use German locale (for plots and strings)
RUN locale-gen de_DE.UTF-8
ENV LANG='de_DE.UTF-8' LANGUAGE='de_DE:de' LC_ALL='de_DE.UTF-8'
# install R packages so that they are cached (in opposite to installing them via R)
RUN install2.r --error envDocument dplyr assertthat lubridate tidyr DBI plotly RSQLite ggplot2 chron darksky RCurl shinycssloaders brms
RUN Rscript -e "source('/srv/shiny-server/src/000_run_pipeline.R')"
CMD ["/usr/bin/shiny-server"]