International Rice Research Institute commited on
Commit
8f93a13
·
verified ·
1 Parent(s): 1ca9a82

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -36
Dockerfile CHANGED
@@ -1,55 +1,42 @@
1
- FROM rocker/r-base:latest
2
 
3
  # Set working directory inside container
4
  WORKDIR /code
5
 
6
- # Install system dependencies for graphics and other packages
7
  RUN apt-get update && apt-get install -y \
8
  libcurl4-openssl-dev \
9
  libssl-dev \
10
  libxml2-dev \
11
- libfreetype6-dev \
12
- libpng-dev \
13
- libharfbuzz-dev \
14
- libfribidi-dev \
15
- libfontconfig1-dev \
16
- libtiff5-dev \
17
- libjpeg-dev \
18
- libcairo2-dev \
19
  libicu-dev \
20
- libudunits2-dev \
21
  libgdal-dev \
22
  libgeos-dev \
23
- libproj-dev
 
 
24
 
25
- # Install R packages in stages, starting with graphics dependencies
26
  RUN install2.r --error \
27
- systemfonts \
28
- textshaping
29
-
30
- RUN install2.r --error \
31
- ragg
32
-
 
 
33
  RUN install2.r --error \
34
- httr \
35
- xml2 \
36
- rvest \
37
- googledrive \
38
- googlesheets4
39
-
40
- RUN install2.r --error \
41
- shiny \
42
- shinyjs \
43
- DT \
44
- readxl \
45
  lme4 \
46
  emmeans \
 
 
47
  plotly \
48
- shinywidgets \
49
- ggplot2
50
-
51
- # Install tidyverse last as it has the most dependencies
52
- RUN install2.r --error tidyverse
53
 
54
  # Copy app code
55
  COPY app.R /code/
@@ -58,4 +45,4 @@ COPY app.R /code/
58
  EXPOSE 7861
59
 
60
  # Run the app
61
- CMD ["R", "--quiet", "-e", "shiny::runApp('/code', host='0.0.0.0', port=7861)"]
 
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
 
41
  # Copy app code
42
  COPY app.R /code/
 
45
  EXPOSE 7861
46
 
47
  # Run the app
48
+ CMD ["R", "--quiet", "-e", "shiny::runApp('/code', host='0.0.0.0.0', port=7861)"]