softwareDevelopment commited on
Commit
261b646
·
verified ·
1 Parent(s): 2be49ea

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -9
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM rocker/shiny:4.3.2
2
 
3
  # Install system dependencies
4
  RUN apt-get update && apt-get install -y \
@@ -13,14 +13,10 @@ RUN apt-get update && apt-get install -y \
13
  && apt-get clean \
14
  && rm -rf /var/lib/apt/lists/*
15
 
16
- # Install R packages (no external font dependencies)
17
- RUN R -e "install.packages(c( \
18
- 'shiny', \
19
- 'DT', \
20
- 'ggplot2', \
21
- 'dplyr', \
22
- 'reshape2' \
23
- ), repos='https://cloud.r-project.org', dependencies=TRUE)"
24
 
25
  # Verify all packages load correctly at build time
26
  RUN R -e "library(shiny); library(DT); library(ggplot2); library(dplyr); library(reshape2); cat('All packages OK\n')"
 
1
+ FROM rocker/shiny-verse:4.3.2
2
 
3
  # Install system dependencies
4
  RUN apt-get update && apt-get install -y \
 
13
  && apt-get clean \
14
  && rm -rf /var/lib/apt/lists/*
15
 
16
+ # rocker/shiny-verse already includes shiny, ggplot2, dplyr, tidyverse
17
+ # Only install packages not bundled in the base image
18
+ RUN R -e "install.packages('DT', repos='https://cloud.r-project.org')"
19
+ RUN R -e "install.packages('reshape2', repos='https://cloud.r-project.org')"
 
 
 
 
20
 
21
  # Verify all packages load correctly at build time
22
  RUN R -e "library(shiny); library(DT); library(ggplot2); library(dplyr); library(reshape2); cat('All packages OK\n')"