International Rice Research Institute commited on
Commit
7abf763
·
verified ·
1 Parent(s): 172e3e3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +48 -7
Dockerfile CHANGED
@@ -1,14 +1,55 @@
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
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
+
19
+ # Install DT dependencies first
20
+ RUN install2.r --error \
21
+ htmltools \
22
+ htmlwidgets \
23
+ jsonlite \
24
+ crosstalk \
25
+ magrittr \
26
+ promises
27
+
28
+ # Then install the main packages
29
  RUN install2.r --error \
30
+ nloptr \
31
+ lme4 \
32
+ emmeans \
33
+ readxl \
34
  ggplot2 \
35
+ plotly \
36
+ shinyjs \
37
+ shinyWidgets \
38
+ DT \
39
+ tidyverse \
40
+ RColorBrewer \
41
+ ggrepel \
42
+ openxlsx \
43
+ igraph \
44
+ dplyr
45
 
46
+
47
+
48
+ # Copy app code
49
+ COPY app.R /code/
50
+
51
+ # Expose the port Shiny will run on
52
+ EXPOSE 7861
53
 
54
+ # Run the app with corrected host address
55
+ CMD ["R", "--quiet", "-e", "shiny::runApp('/code', host='0.0.0.0', port=7861)"]