Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +13 -24
Dockerfile
CHANGED
|
@@ -1,52 +1,41 @@
|
|
| 1 |
FROM rocker/r2u:latest
|
| 2 |
-
|
| 3 |
WORKDIR /code
|
| 4 |
|
| 5 |
-
#
|
|
|
|
| 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 |
-
python3-pip \
|
| 13 |
-
python3-dev \
|
| 14 |
-
libpython3-dev \
|
| 15 |
&& rm -rf /var/lib/apt/lists/*
|
| 16 |
|
| 17 |
-
# Install huggingface_hub Python package
|
| 18 |
-
RUN pip3 install huggingface_hub --break-system-packages
|
| 19 |
-
|
| 20 |
-
# Tell reticulate which Python to use
|
| 21 |
-
ENV RETICULATE_PYTHON=/usr/bin/python3
|
| 22 |
-
|
| 23 |
# Heavy R packages (cached separately so they don't rebuild often)
|
| 24 |
RUN install2.r --error --skipinstalled \
|
| 25 |
arrow \
|
| 26 |
xgboost \
|
| 27 |
-
recipes
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
# Lighter R packages (this layer rebuilds if you add/remove packages)
|
| 30 |
RUN install2.r --error --skipinstalled \
|
| 31 |
shiny \
|
| 32 |
-
shinydashboard \
|
| 33 |
-
shinyBS \
|
| 34 |
-
DT \
|
| 35 |
dplyr \
|
| 36 |
-
|
|
|
|
| 37 |
stringr \
|
|
|
|
|
|
|
| 38 |
jsonlite \
|
| 39 |
httr \
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
curl \
|
| 43 |
-
base64enc \
|
| 44 |
-
arrow \
|
| 45 |
-
reticulate
|
| 46 |
|
| 47 |
# Copy app files (changes here won't trigger package reinstall)
|
| 48 |
COPY . .
|
| 49 |
|
| 50 |
EXPOSE 7860
|
| 51 |
-
|
| 52 |
CMD ["R", "--quiet", "-e", "shiny::runApp(host='0.0.0.0', port=7860)"]
|
|
|
|
| 1 |
FROM rocker/r2u:latest
|
|
|
|
| 2 |
WORKDIR /code
|
| 3 |
|
| 4 |
+
# System dependencies
|
| 5 |
+
# (no Python: the app fetches private model files over HTTPS via httr, not reticulate/huggingface_hub)
|
| 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 |
+
libmagick++-dev \
|
|
|
|
|
|
|
|
|
|
| 12 |
&& rm -rf /var/lib/apt/lists/*
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
# Heavy R packages (cached separately so they don't rebuild often)
|
| 15 |
RUN install2.r --error --skipinstalled \
|
| 16 |
arrow \
|
| 17 |
xgboost \
|
| 18 |
+
recipes \
|
| 19 |
+
workflows \
|
| 20 |
+
parsnip \
|
| 21 |
+
tidymodels
|
| 22 |
|
| 23 |
# Lighter R packages (this layer rebuilds if you add/remove packages)
|
| 24 |
RUN install2.r --error --skipinstalled \
|
| 25 |
shiny \
|
|
|
|
|
|
|
|
|
|
| 26 |
dplyr \
|
| 27 |
+
ggplot2 \
|
| 28 |
+
gridExtra \
|
| 29 |
stringr \
|
| 30 |
+
zip \
|
| 31 |
+
png \
|
| 32 |
jsonlite \
|
| 33 |
httr \
|
| 34 |
+
ggforce \
|
| 35 |
+
magick
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
# Copy app files (changes here won't trigger package reinstall)
|
| 38 |
COPY . .
|
| 39 |
|
| 40 |
EXPOSE 7860
|
|
|
|
| 41 |
CMD ["R", "--quiet", "-e", "shiny::runApp(host='0.0.0.0', port=7860)"]
|