Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +11 -9
Dockerfile
CHANGED
|
@@ -1,17 +1,20 @@
|
|
| 1 |
FROM rocker/r2u:latest
|
| 2 |
-
|
| 3 |
WORKDIR /code
|
| 4 |
|
| 5 |
-
# Install system dependencies
|
| 6 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 7 |
ca-certificates \
|
| 8 |
libcurl4-openssl-dev \
|
| 9 |
libssl-dev \
|
| 10 |
libxml2-dev \
|
| 11 |
-
|
|
|
|
| 12 |
&& rm -rf /var/lib/apt/lists/*
|
| 13 |
|
| 14 |
-
# Install
|
|
|
|
|
|
|
|
|
|
| 15 |
RUN install2.r --error --skipinstalled \
|
| 16 |
shiny \
|
| 17 |
shinydashboard \
|
|
@@ -19,7 +22,7 @@ RUN install2.r --error --skipinstalled \
|
|
| 19 |
DT \
|
| 20 |
dplyr \
|
| 21 |
readr \
|
| 22 |
-
stringr \
|
| 23 |
jsonlite \
|
| 24 |
httr \
|
| 25 |
progressr \
|
|
@@ -27,10 +30,9 @@ RUN install2.r --error --skipinstalled \
|
|
| 27 |
curl \
|
| 28 |
recipes \
|
| 29 |
arrow \
|
| 30 |
-
base64enc
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
RUN R -e "install.packages('xgboost', repos='https://cloud.r-project.org', type='source', Ncpus=parallel::detectCores())"
|
| 34 |
|
| 35 |
# Copy app files
|
| 36 |
COPY . .
|
|
|
|
| 1 |
FROM rocker/r2u:latest
|
|
|
|
| 2 |
WORKDIR /code
|
| 3 |
|
| 4 |
+
# Install system dependencies + Python
|
| 5 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 6 |
ca-certificates \
|
| 7 |
libcurl4-openssl-dev \
|
| 8 |
libssl-dev \
|
| 9 |
libxml2-dev \
|
| 10 |
+
python3 \
|
| 11 |
+
python3-pip \
|
| 12 |
&& rm -rf /var/lib/apt/lists/*
|
| 13 |
|
| 14 |
+
# Install huggingface_hub Python package
|
| 15 |
+
RUN pip3 install huggingface_hub --break-system-packages
|
| 16 |
+
|
| 17 |
+
# Install R packages
|
| 18 |
RUN install2.r --error --skipinstalled \
|
| 19 |
shiny \
|
| 20 |
shinydashboard \
|
|
|
|
| 22 |
DT \
|
| 23 |
dplyr \
|
| 24 |
readr \
|
| 25 |
+
stringr \
|
| 26 |
jsonlite \
|
| 27 |
httr \
|
| 28 |
progressr \
|
|
|
|
| 30 |
curl \
|
| 31 |
recipes \
|
| 32 |
arrow \
|
| 33 |
+
base64enc \
|
| 34 |
+
reticulate \
|
| 35 |
+
xgboost
|
|
|
|
| 36 |
|
| 37 |
# Copy app files
|
| 38 |
COPY . .
|