Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- 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 |
-
#
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 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')"
|