forked from pink-sh/StockMonitoringTool
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
75 lines (61 loc) · 2.29 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
FROM rocker/r-ver:4
MAINTAINER Alexandre Bennici "[email protected]"
# system libraries of general use
RUN apt-get update && apt-get install -y \
sudo \
pandoc \
pandoc-citeproc \
libcurl4-openssl-dev \
libcairo2-dev \
libxt-dev \
libssl-dev \
libssh2-1-dev \
libjpeg-dev \
default-jre \
default-jdk \
libxml2-dev \
libudunits2-dev \
libproj-dev \
libgeos-dev \
libgdal-dev \
git \
texlive-latex-base \
texlive-fonts-recommended \
texlive-formats-extra \
libv8-dev \
libsodium-dev \
libsecret-1-dev \
libnlopt-dev \
libharfbuzz-dev \
libfribidi-dev
RUN apt-get update && apt-get upgrade -y
RUN apt-get update && apt-get -y install cmake
# install dependencies of the Stock monitoring tool app
RUN R -e "install.packages(c('devtools'), repos='https://cran.r-project.org/', dependencies = TRUE)"
RUN R -e "install.packages(c('XML', 'xml2','shiny','rmarkdown','shinyjs','shinythemes','shinydashboard','shinyWidgets','RCurl','ggplot2','rfishbase','shinyBS','lubridate','waiter','pracma','googleVis','stringr','R.utils','fishmethods','V8','DT','futile.logger','TropFishR','nloptr','R6','sodium','keyring'), repos='https://cran.r-project.org/')"
RUN R -e "install.packages(c('kableExtra','LBSPR','openxlsx'), repos='https://cran.r-project.org/')"
RUN R -e "devtools::install_github('eblondel/d4storagehub4R')"
RUN R -e "devtools::install_github('eblondel/ows4R')"
RUN R -e "devtools::install_github('AnalytixWare/ShinySky')"
#Development
## git repo:
# RUN git -C /root/ clone --branch lbspr4 https://github.com/tokami/StockMonitoringTool.git && echo "OK!"
## or local:
# RUN mkdir -p root
# RUN cd root
# WORKDIR /root
# ADD StockMonitoringTool.tar.gz /root/
#Development
RUN git -C /root/ clone https://github.com/abennici/StockMonitoringTool.git && echo "OK!"
#Deployment
#RUN git -C /root/ clone https://github.com/pink-sh/StockMonitoringTool.git && echo "OK!"
RUN mkdir -p /srv/shiny/
RUN ln -s /root/StockMonitoringTool /srv/shiny/stockMonitoringTools
EXPOSE 3838
ENV SMT_LOG=session.log
RUN apt-get -y update
RUN apt-get install -y curl
#Development
CMD ["R", "-e shiny::runApp('/srv/shiny/stockMonitoringTools',port=3838,host='0.0.0.0')"]
#Deployment
#CMD ["R", "-e shiny::runApp('/srv/shiny/stockMonitoringTools')"]