TimStats commited on
Commit
2897703
·
verified ·
1 Parent(s): e819595

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -15
Dockerfile CHANGED
@@ -7,23 +7,20 @@ RUN apt-get update && apt-get install -y \
7
  libxml2-dev \
8
  && rm -rf /var/lib/apt/lists/*
9
 
10
- # Install R packages
11
- RUN R -e "install.packages(c(\
12
- 'shiny', \
13
- 'DT', \
14
- 'dplyr', \
15
- 'tidyverse', \
16
- 'httr', \
17
- 'bslib', \
18
- 'rtabulator', \
19
- 'xgboost' \
20
- ), repos='https://cloud.r-project.org/')"
21
 
22
- # Create a directory for the app
23
- WORKDIR /app
 
 
 
 
 
 
 
 
24
 
25
  # Copy the app files
26
  COPY . .
27
 
28
- # Command to run the app
29
- CMD ["R", "-e", "shiny::runApp('/app', host = '0.0.0.0', port = 3838)"]
 
7
  libxml2-dev \
8
  && rm -rf /var/lib/apt/lists/*
9
 
10
+ WORKDIR /code
 
 
 
 
 
 
 
 
 
 
11
 
12
+ # Install R packages
13
+ RUN install2.r --error \
14
+ shiny \
15
+ DT \
16
+ dplyr \
17
+ tidyverse \
18
+ httr \
19
+ bslib \
20
+ rtabulator \
21
+ xgboost
22
 
23
  # Copy the app files
24
  COPY . .
25
 
26
+ CMD ["R", "--quiet", "-e", "shiny::runApp(host='0.0.0.0', port=7860)"]]