forked from AparicioJohan/MrBeanApp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
106 lines (94 loc) · 5.8 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
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
FROM rstudio/r-base:4.1.1-focal
LABEL maintainer "Johan Aparicio <[email protected]>"
# Install Dependencies
RUN apt-get update && apt-get install -y \
wget gnupg \
cmake \
git-core \
imagemagick \
libcairo2-dev \
libcurl4-openssl-dev \
libfribidi-dev \
libgit2-dev \
libharfbuzz-dev \
libicu-dev \
libmagic-dev \
libmagick++-dev \
libpng-dev \
libssl-dev \
libtiff-dev \
libxml2-dev \
curl \
make \
pandoc \
pandoc-citeproc \
zlib1g-dev && rm -rf /var/lib/apt/lists/*
RUN mkdir -p /usr/local/lib/R/etc/ /usr/lib/R/etc/
RUN echo "options(repos = c(CRAN = 'https://cran.rstudio.com/'), download.file.method = 'libcurl', Ncpus = 4)" | tee /usr/local/lib/R/etc/Rprofile.site | tee /usr/lib/R/etc/Rprofile.site
RUN R -e 'install.packages("remotes")'
RUN Rscript -e 'remotes::install_version("magrittr",upgrade="never", version = "2.0.3")'
RUN Rscript -e 'remotes::install_version("tibble",upgrade="never", version = "3.1.8")'
RUN Rscript -e 'remotes::install_version("glue",upgrade="never", version = "1.6.2")'
RUN Rscript -e 'remotes::install_version("pkgload",upgrade="never", version = "1.3.0")'
RUN Rscript -e 'remotes::install_version("testthat",upgrade="never", version = "3.1.4")'
RUN Rscript -e 'remotes::install_version("stringi",upgrade="never", version = "1.7.8")'
RUN Rscript -e 'remotes::install_version("stringr",upgrade="never", version = "1.4.0")'
RUN Rscript -e 'remotes::install_version("yaml",upgrade="never", version = "2.3.5")'
RUN Rscript -e 'remotes::install_version("lme4",upgrade="never", version = "1.1-30")'
RUN Rscript -e 'remotes::install_version("dplyr",upgrade="never", version = "1.0.9")'
RUN Rscript -e 'remotes::install_version("tidyr",upgrade="never", version = "1.2.0")'
RUN Rscript -e 'remotes::install_version("ggrepel",upgrade="never", version = "0.9.1")'
RUN Rscript -e 'remotes::install_version("ggplot2",upgrade="never", version = "3.3.6")'
RUN Rscript -e 'remotes::install_version("htmltools",upgrade="never", version = "0.5.3")'
RUN Rscript -e 'remotes::install_version("DT",upgrade="never", version = "0.24")'
RUN Rscript -e 'remotes::install_version("shiny",upgrade="never", version = "1.7.2")'
RUN Rscript -e 'remotes::install_version("ggpubr",upgrade="never", version = "0.4.0")'
RUN Rscript -e 'remotes::install_version("data.table",upgrade="never", version = "1.14.2")'
RUN Rscript -e 'remotes::install_version("waiter",upgrade="never", version = "0.2.5")'
RUN Rscript -e 'remotes::install_version("config",upgrade="never", version = "0.3.1")'
RUN Rscript -e 'remotes::install_version("sjmisc",upgrade="never", version = "2.8.9")'
RUN Rscript -e 'remotes::install_version("QBMS",upgrade="never", version = "0.8.0")'
RUN Rscript -e 'remotes::install_version("emmeans",upgrade="never", version = "1.8.0")'
RUN Rscript -e 'remotes::install_version("broom.mixed",upgrade="never", version = "0.2.9.4")'
RUN Rscript -e 'remotes::install_version("lmerTest",upgrade="never", version = "3.1-3")'
RUN Rscript -e 'remotes::install_version("psych",upgrade="never", version = "2.2.5")'
RUN Rscript -e 'remotes::install_version("sever",upgrade="never", version = "0.0.7")'
RUN Rscript -e 'remotes::install_version("factoextra",upgrade="never", version = "1.0.7")'
RUN Rscript -e 'remotes::install_version("reshape",upgrade="never", version = "0.8.9")'
RUN Rscript -e 'remotes::install_version("formattable",upgrade="never", version = "0.2.1")'
RUN Rscript -e 'remotes::install_version("kableExtra",upgrade="never", version = "1.3.4")'
RUN Rscript -e 'remotes::install_version("readxl",upgrade="never", version = "1.4.0")'
RUN Rscript -e 'remotes::install_version("echarts4r",upgrade="never", version = "0.4.4")'
RUN Rscript -e 'remotes::install_version("summarytools",upgrade="never", version = "1.0.1")'
RUN Rscript -e 'remotes::install_version("plotly",upgrade="never", version = "4.10.0")'
RUN Rscript -e 'remotes::install_version("shinycssloaders",upgrade="never", version = "1.0.0")'
RUN Rscript -e 'remotes::install_version("shinyWidgets",upgrade="never", version = "0.7.2")'
RUN Rscript -e 'remotes::install_version("shinyalert",upgrade="never", version = "3.0.0")'
RUN Rscript -e 'remotes::install_version("shinytoastr",upgrade="never", version = "2.1.1")'
RUN Rscript -e 'remotes::install_version("rintrojs",upgrade="never", version = "0.3.2")'
RUN Rscript -e 'remotes::install_version("shinyjs",upgrade="never", version = "2.1.0")'
RUN Rscript -e 'remotes::install_version("SpATS",upgrade="never", version = "1.0-17")'
RUN Rscript -e 'remotes::install_version("golem",upgrade="never", version = "0.3.3")'
RUN Rscript -e 'remotes::install_version("readr",upgrade="never", version = "2.1.2")'
RUN Rscript -e 'remotes::install_version("sommer",upgrade="never", version = "4.2.0")'
RUN Rscript -e 'remotes::install_version("colourpicker",upgrade="never", version = "1.1.1")'
RUN Rscript -e 'remotes::install_github("RinteRface/bs4Dash@aef2c3a02387e9cf0eabbeffd4104177ef463237")'
RUN Rscript -e 'remotes::install_github("r-lib/async")'
RUN mkdir ./private_pkgs
COPY source_pkgs/asreml-4.1.0.176-Ubuntu-18-R4.1.tar.gz ./private_pkgs/asreml-4.1.0.176-Ubuntu-18-R4.1.tar.gz
COPY source_pkgs/asreml_license.R ./private_pkgs/asreml_license.R
# Install ASReml dependencies
RUN R -e 'install.packages("data.table")'
RUN R -e 'install.packages("ggplot2")'
RUN R -e 'install.packages("jsonlite")'
# Install ASReml from source
RUN R -e 'install.packages("private_pkgs/asreml-4.1.0.176-Ubuntu-18-R4.1.tar.gz", repos = NULL)'
# Activate the ASReml license (Uncomment this line to activate the ASReml license)
# RUN Rscript private_pkgs/asreml_license.R
RUN mkdir /build_zone
ADD . /build_zone
WORKDIR /build_zone
RUN R -e 'remotes::install_local(upgrade="never")'
RUN rm -rf /build_zone
EXPOSE 3838
CMD ["R", "-e", "options('shiny.port'=3838,shiny.host='0.0.0.0');require(MrBean);MrBean::run_app()"]