Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +35 -1
Dockerfile
CHANGED
|
@@ -2,12 +2,46 @@ FROM rocker/r-base:latest
|
|
| 2 |
|
| 3 |
WORKDIR /code
|
| 4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
RUN install2.r --error \
|
| 6 |
shiny \
|
| 7 |
DT \
|
| 8 |
htmltools \
|
| 9 |
gt \
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
COPY . .
|
| 13 |
|
|
|
|
| 2 |
|
| 3 |
WORKDIR /code
|
| 4 |
|
| 5 |
+
# System dependencies needed for R packages
|
| 6 |
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 7 |
+
libcurl4-openssl-dev \
|
| 8 |
+
libssl-dev \
|
| 9 |
+
libxml2-dev \
|
| 10 |
+
libfontconfig1-dev \
|
| 11 |
+
libfreetype6-dev \
|
| 12 |
+
libpng-dev \
|
| 13 |
+
libtiff5-dev \
|
| 14 |
+
libjpeg-dev \
|
| 15 |
+
libharfbuzz-dev \
|
| 16 |
+
libfribidi-dev \
|
| 17 |
+
python3 \
|
| 18 |
+
python3-pip \
|
| 19 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 20 |
+
|
| 21 |
+
# Install Python huggingface_hub for reticulate
|
| 22 |
+
RUN pip3 install --break-system-packages huggingface_hub
|
| 23 |
+
|
| 24 |
+
# Install R packages
|
| 25 |
RUN install2.r --error \
|
| 26 |
shiny \
|
| 27 |
DT \
|
| 28 |
htmltools \
|
| 29 |
gt \
|
| 30 |
+
gtExtras \
|
| 31 |
+
plotly \
|
| 32 |
+
tidymodels \
|
| 33 |
+
xgboost \
|
| 34 |
+
arrow \
|
| 35 |
+
reticulate \
|
| 36 |
+
recipes \
|
| 37 |
+
httr \
|
| 38 |
+
fmsb \
|
| 39 |
+
dplyr \
|
| 40 |
+
tidyr \
|
| 41 |
+
stringr \
|
| 42 |
+
ggplot2 \
|
| 43 |
+
scales \
|
| 44 |
+
readr
|
| 45 |
|
| 46 |
COPY . .
|
| 47 |
|