International Rice Research Institute commited on
Commit
87b1a04
·
verified ·
1 Parent(s): 29fec00

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +75 -7
Dockerfile CHANGED
@@ -1,14 +1,82 @@
1
- FROM rocker/r-base:latest
2
 
 
3
  WORKDIR /code
4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  RUN install2.r --error \
6
- shiny \
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  dplyr \
8
- ggplot2 \
9
- readr \
10
- ggExtra
 
 
11
 
12
- COPY . .
13
 
14
- CMD ["R", "--quiet", "-e", "shiny::runApp(host='0.0.0.0', port=7860)"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM rocker/shiny:latest
2
 
3
+ # Set working directory inside container
4
  WORKDIR /code
5
 
6
+ # Install additional system dependencies including libglpk for igraph
7
+ RUN apt-get update && apt-get install -y \
8
+ libcurl4-openssl-dev \
9
+ libssl-dev \
10
+ libxml2-dev \
11
+ libnlopt-dev \
12
+ libicu-dev \
13
+ libgdal-dev \
14
+ libgeos-dev \
15
+ libproj-dev \
16
+ libv8-dev \
17
+ libnode-dev \
18
+ libglpk-dev \
19
+ libglpk40 \
20
+ && apt-get clean \
21
+ && rm -rf /var/lib/apt/lists/*
22
+
23
+ # Install DT dependencies first
24
+ RUN install2.r --error \
25
+ htmltools \
26
+ htmlwidgets \
27
+ jsonlite \
28
+ crosstalk \
29
+ magrittr \
30
+ promises
31
+
32
+ # Install main packages, tidyverse, and igraph in a single RUN command
33
+ # Note: If --error is not supported by your install2.r, remove it and use:
34
+ # RUN install2.r nloptr lme4 emmeans readxl plotly shinyjs shinyWidgets DT RColorBrewer ggrepel openxlsx randomForest caret qtl writexl viridis devtools tidyverse igraph
35
  RUN install2.r --error \
36
+ nloptr \
37
+ lme4 \
38
+ emmeans \
39
+ readxl \
40
+ plotly \
41
+ shinyjs \
42
+ shinyWidgets \
43
+ DT \
44
+ RColorBrewer \
45
+ ggrepel \
46
+ openxlsx \
47
+ randomForest \
48
+ caret \
49
+ qtl \
50
+ writexl \
51
+ viridis \
52
+ devtools \
53
+ tidyverse \
54
+ igraph \
55
+ shinythemes \
56
+ shinyBS \
57
+ QTLseqr \
58
+ data.table \
59
  dplyr \
60
+ tidyr \
61
+ vcfR \
62
+ dbscan \
63
+ factoextra \
64
+ cluster \
65
 
 
66
 
67
+ # Install packages from GitHub
68
+ RUN R -e "devtools::install_github('cran/qtlDesign')" \
69
+ && R -e "devtools::install_github('jtlovell/qtlTools')"
70
+ && R -e "devtools::install_github('bmansfeld/QTLseqr')"
71
+
72
+ # Create www directory and health file
73
+ RUN mkdir -p /code/www && echo "OK" > /code/www/health
74
+
75
+ # Copy app code
76
+ COPY app.R /code/
77
+
78
+ # Expose the port Shiny will run on
79
+ EXPOSE 7860
80
+
81
+ # Run the app with corrected host address
82
+ CMD ["R", "--quiet", "-e", "shiny::runApp('/code', host='0.0.0.0', port=7860)"]