salekml commited on
Commit
417bae8
·
verified ·
1 Parent(s): 1be3e52

Update Dockerfile

Browse files

![model_comparison](https://cdn-uploads.huggingface.co/production/uploads/68e2aa49f607766b3ebcf401/VLRLQ6rdp5mT39b8S-arF.png)

Files changed (1) hide show
  1. Dockerfile +21 -2
Dockerfile CHANGED
@@ -2,13 +2,32 @@ 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
+ libxt-dev \
11
+ libfontconfig1-dev \
12
+ && rm -rf /var/lib/apt/lists/*
13
+
14
+ # Install required R packages
15
  RUN install2.r --error \
16
  shiny \
17
  dplyr \
18
  ggplot2 \
19
  readr \
20
+ ggExtra \
21
+ recommenderlab \
22
+ recosystem \
23
+ reshape2 \
24
+ data.table \
25
+ shinycssloaders \
26
+ shinyWidgets
27
+
28
+ # Copy all app files
29
  COPY . .
30
 
31
+ # Run Shiny App
32
  CMD ["R", "--quiet", "-e", "shiny::runApp(host='0.0.0.0', port=7860)"]
33
+