-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (31 loc) · 1.39 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
FROM rocker/shiny
# Install additional Ubuntu packages
RUN sudo apt-get update && sudo apt-get -y install libssl-dev
RUN sudo apt-get -y install libfftw3-3 libfftw3-bin libfftw3-dev libfftw3-double3
# Temporal fix for RStan package
# http://discourse.mc-stan.org/t/error-when-installing-rstan-2-16-2/1730
# https://github.com/stan-dev/rstan/wiki/Installing-RStan-on-Mac-or-Linux
RUN echo "\nCXXFLAGS=-O3 -mtune=native -march=native -Wno-unused-variable -Wno-unused-function" >> /etc/R/Makeconf
RUN echo "\nCXXFLAGS+=-DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION" >> /etc/R/Makeconf
RUN echo "\nCPPFLAGS+=-DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION" >> /etc/R/Makeconf
# Install additional R packages
RUN R -e "install.packages('DT')"
RUN R -e "install.packages('shinyjs')"
RUN R -e "install.packages('shinydashboard')"
RUN R -e "install.packages('shinyBS')"
RUN R -e "install.packages('shiny')"
RUN R -e "install.packages('xts')"
RUN R -e "install.packages('zoo')"
RUN R -e "install.packages('lubridate')"
RUN R -e "install.packages('dygraphs')"
RUN R -e "install.packages('dplyr')"
RUN R -e "install.packages('plotly')"
RUN R -e "install.packages('smoother')"
RUN R -e "install.packages('prophet')"
RUN R -e "install.packages('Rssa', type = 'source')"
RUN R -e "install.packages('stringr')"
RUN R -e "install.packages('readr')"
RUN R -e "install.packages('parallel')"
# Add application codebase
COPY ./ /srv/shiny-server
EXPOSE 3838