igroffman commited on
Commit
bd30707
·
verified ·
1 Parent(s): a1e8e2d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -5
Dockerfile CHANGED
@@ -2,13 +2,28 @@ 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)"]
 
 
 
 
 
2
 
3
  WORKDIR /code
4
 
5
+ # Install system dependencies
6
+ RUN apt-get update && apt-get install -y \
7
+ libcurl4-openssl-dev \
8
+ libssl-dev \
9
+ libxml2-dev \
10
+ && rm -rf /var/lib/apt/lists/*
11
+
12
+ # Install required R packages
13
+ RUN install2.r --error --skipinstalled \
14
  shiny \
15
+ shinydashboard \
16
+ shinyBS \
17
+ DT \
18
  dplyr \
 
19
  readr \
20
+ stringr
21
+
22
+ # Copy app files
23
  COPY . .
24
 
25
+ # Expose port
26
+ EXPOSE 7860
27
+
28
+ # Run the app
29
+ CMD ["R", "--quiet", "-e", "shiny::runApp(host='0.0.0.0', port=7860)"]