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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -5
Dockerfile CHANGED
@@ -3,7 +3,7 @@ FROM rocker/r-base:latest
3
  # Set working directory inside container
4
  WORKDIR /code
5
 
6
- # Install system dependencies first
7
  RUN apt-get update && apt-get install -y \
8
  libcurl4-openssl-dev \
9
  libssl-dev \
@@ -11,14 +11,29 @@ RUN apt-get update && apt-get install -y \
11
  libfreetype6-dev \
12
  libpng-dev \
13
  libharfbuzz-dev \
14
- libfribidi-dev
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
 
16
- # Install R packages in stages
17
  RUN install2.r --error \
18
  httr \
19
  xml2 \
20
  rvest \
21
- ragg \
22
  googledrive \
23
  googlesheets4
24
 
@@ -36,7 +51,7 @@ RUN install2.r --error \
36
  # Install tidyverse last as it has the most dependencies
37
  RUN install2.r --error tidyverse
38
 
39
- # Copy app code and www folder
40
  COPY app.R /code/
41
 
42
  # Expose the port Shiny will run on
 
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 \
 
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
 
 
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/
56
 
57
  # Expose the port Shiny will run on