-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcore.dockerfile
More file actions
136 lines (109 loc) · 4.8 KB
/
core.dockerfile
File metadata and controls
136 lines (109 loc) · 4.8 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
FROM rocker/shiny:4.3.1 as build
ARG GITHUB_PAT
ENV GITHUB_PAT $GITHUB_PAT
RUN R -e "install.packages('remotes')"
RUN apt-get update
RUN apt-get install -y libglpk-dev
#scissor, datatoys, board, stove, colorpen, soroban, door
RUN R -e "remotes::install_github('statgarten/scissor', ask=FALSE)"
# RUN R -e "remotes::install_github('statgarten/datatoys', ask=FALSE)"
RUN R -e "remotes::install_github('statgarten/board', ask=FALSE)"
RUN R -e "remotes::install_github('statgarten/stove', ask=FALSE)"
RUN R -e "remotes::install_github('statgarten/colorpen', ask=FALSE)"
RUN R -e "remotes::install_github('statgarten/soroban', ask=FALSE)"
RUN R -e "remotes::install_github('statgarten/door', ask=FALSE)"
RUN R -e "remove.packages('lightgbm')"
RUN R -e "install.packages('lightgbm', version = '3.3.5')"
FROM rocker/shiny:4.3.1
RUN apt-get update
RUN apt-get install -y libglpk-dev
COPY --from=build /usr/local/lib/R/site-library/ /usr/local/lib/R/site-library
COPY ShinyApps/app.R /srv/shiny-server/app.R
RUN rm -r /srv/shiny-server/index.html /srv/shiny-server/sample-apps
EXPOSE 3838
# USER root
#CMD ["bash"]
CMD ["/usr/bin/shiny-server"]
# # Noninteractive Setting
# ENV DEBIAN_FRONTEND noninteractive
# RUN apt-get update && apt-get install -y dirmngr gnupg apt-transport-https ca-certificates software-properties-common locales
# # Set Locale
# RUN locale-gen en_US.UTF-8
# RUN update-locale LANG=en_US.UTF-8
# #Setting for tzdata
# RUN ln -fs /usr/share/zoneinfo/Asia/Seoul /etc/localtime && dpkg-reconfigure --frontend noninteractive tzdata
# # statgarten dependencies
# RUN apt-get install -y libssl-dev libcurl4-openssl-dev libxml2-dev libfreetype6-dev libgdal-dev cmake
# # shinyserver dependencies
# RUN apt-get install -y wget gdebi
# RUN apt-get install -y \
# --no-install-recommends \
# git-core \
# libssl-dev \
# libcurl4-gnutls-dev \
# curl \
# libsodium-dev \
# libxml2-dev \
# libicu-dev \
# && apt-get clean \
# && rm -rf /var/lib/apt/lists/*
# # install R
# RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
# RUN add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/'
# RUN apt install -y r-base-core
# RUN apt install -y r-recommended
# RUN apt install -y r-base
# # for install_github
# RUN R -e "install.packages('remotes')"
# # statgarten dependencies - door
# RUN R -e "install.packages(c('dplyr', 'httr', 'rvest', 'xml2', 'tidyverse', 'plotly', 'leaflet', 'ggparty', 'caret', 'reactable', 'ggpie', 'naniar'))"
# RUN R -e "remotes::install_github('vqv/ggbiplot')"
# # statgarten dependencies - colorpen
# RUN R -e "install.packages('phosphoricons')"
# # statgarten dependencies - board
# RUN R -e "install.packages(c('shinydashboardPlus'))"
# # statgarten dependencies - colorpen
# RUN R -e "install.packages(c('shiny.i18n'))"
# # statgarten dependencies - soroban
# RUN R -e "install.packages(c('showtext'))"
# # statgarten depencencies - scissor
# RUN R -e "install.packages(c('RSQLite', 'sortable', 'writexl'))"
# # statgarten dependencies - goophi
# RUN R -e "install.packages(c('factoextra', 'rstanarm'))"
# RUN R -e "remotes::install_github('statgarten/datatoys')"
# RUN R -e "remotes::install_github('statgarten/board')"
# RUN R -e "remotes::install_github('statgarten/stove')"
# RUN R -e "remotes::install_github('statgarten/colorpen')"
# RUN R -e "remotes::install_github('statgarten/soroban')"
# RUN R -e "remotes::install_github('statgarten/scissor')"
# RUN R -e "remotes::install_github('statgarten/door')"
# RUN wget --no-verbose https://s3.amazonaws.com/rstudio-shiny-server-os-build/ubuntu-18.04/x86_64/VERSION -O "version.txt" && \
# VERSION=$(cat version.txt) && \
# wget --no-verbose "https://download3.rstudio.org/ubuntu-18.04/x86_64/shiny-server-$VERSION-amd64.deb" -O ss-latest.deb && \
# gdebi -n ss-latest.deb && \
# rm -f version.txt ss-latest.deb
# COPY group /etc/group
# COPY passwd /etc/passwd
# COPY sudoers /etc/sudoers
# RUN chmod 644 /etc/group
# RUN chmod 644 /etc/passwd
# RUN chmod 644 /etc/sudoers
# # install TeX
# RUN apt-get install -y texlive-base texlive-latex-base texlive-latex-extra
# USER shiny
# RUN tlmgr init-usertree
# RUN tlmgr option repository http://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2019/tlnet-final
# RUN tlmgr install pdftexcmds --verify-repo=none
# RUN tlmgr install infwarerr --verify-repo=none
# RUN tlmgr install pdfescape --verify-repo=none
# RUN tlmgr install letltxmacro --verify-repo=none
# USER root
# RUN R -e "install.packages('tinytex')"
# RUN R -e "tinytex::install_tinytex(force = TRUE)"
# #COPY ini.sh /etc/ini.sh
# COPY ShinyApps/app.R /srv/shiny-server/app.R
# RUN rm -r /srv/shiny-server/index.html /srv/shiny-server/sample-apps
# RUN chmod 777 -R /tmp
# WORKDIR /var/log/shiny-server
# EXPOSE 3838
# CMD ["/usr/bin/shiny-server"]