International Rice Research Institute commited on
Commit
a4e178d
·
verified ·
1 Parent(s): 1d748d8

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +21 -8
Dockerfile CHANGED
@@ -1,14 +1,27 @@
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/r-base:latest
2
 
3
+ # Set working directory inside container
4
  WORKDIR /code
5
 
6
+ # Install packages
7
  RUN install2.r --error \
8
  shiny \
9
+ shinyjs \
10
+ tidyverse \
11
+ DT \
12
+ readxl \
13
+ lme4 \
14
+ emmeans \
15
+ plotly \
16
+ shinywidgets \
17
+ ggplot2
18
+
19
+ # Copy app code and www folder
20
+ COPY app.R /code/
21
+ COPY www /code/www
22
+
23
+ # Expose the port Shiny will run on
24
+ EXPOSE 7860
25
+
26
+ # Run the app
27
+ CMD ["R", "--quiet", "-e", "shiny::runApp('/code', host='0.0.0.0', port=7861)"]