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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -7
Dockerfile CHANGED
@@ -3,7 +3,7 @@ FROM rocker/shiny:latest
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 \
@@ -14,7 +14,9 @@ RUN apt-get update && apt-get install -y \
14
  libgeos-dev \
15
  libproj-dev \
16
  libv8-dev \
17
- libnode-dev
 
 
18
 
19
  # Install DT dependencies first
20
  RUN install2.r --error \
@@ -36,14 +38,19 @@ RUN install2.r --error \
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/
 
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 \
 
14
  libgeos-dev \
15
  libproj-dev \
16
  libv8-dev \
17
+ libnode-dev \
18
+ libglpk-dev \ # Added for igraph package
19
+ libglpk40 # Added for igraph runtime dependency
20
 
21
  # Install DT dependencies first
22
  RUN install2.r --error \
 
38
  shinyjs \
39
  shinyWidgets \
40
  DT \
 
41
  RColorBrewer \
42
  ggrepel \
43
  openxlsx \
44
+ dplyr
45
+
46
+ # Install tidyverse (which includes many of the packages you listed)
47
+ RUN install2.r --error tidyverse
48
+
49
+ # Install igraph separately to ensure it picks up the system dependencies
50
+ RUN install2.r --error igraph
51
+
52
+ # Create www directory and health file for container health checks
53
+ RUN mkdir -p /code/www && echo "OK" > /code/www/health
54
 
55
  # Copy app code
56
  COPY app.R /code/