Spaces:
Running
Running
File size: 1,265 Bytes
4c63943 67f5c3e f329288 c28379a bd30707 6dae47e f329288 bd30707 f329288 900105b 6dae47e 900105b bd30707 67f5c3e f329288 67f5c3e 6dae47e 9ea6d36 f329288 6dae47e 16a55e0 6dae47e f329288 bd30707 900105b 67f5c3e bd30707 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | FROM rocker/r2u:latest
WORKDIR /code
# System dependencies + Python (needed by reticulate for the Hugging Face
# upload step in the Scraping tab)
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
libcurl4-openssl-dev \
libssl-dev \
libxml2-dev \
libmagick++-dev \
python3 \
python3-pip \
python3-dev \
libpython3-dev \
&& rm -rf /var/lib/apt/lists/*
# huggingface_hub for the dataset upload feature
RUN pip3 install huggingface_hub --break-system-packages
# Tell reticulate which Python to use
ENV RETICULATE_PYTHON=/usr/bin/python3
# Heavy R packages (cached separately so they don't rebuild often)
RUN install2.r --error --skipinstalled \
arrow \
xgboost \
recipes \
workflows \
parsnip \
tidymodels
# Lighter R packages (this layer rebuilds if you add/remove packages)
RUN install2.r --error --skipinstalled \
shiny \
shinyBS \
DT \
dplyr \
ggplot2 \
gridExtra \
stringr \
readr \
zip \
png \
jsonlite \
httr \
ggforce \
magick \
reticulate
# Copy app files (changes here won't trigger package reinstall)
COPY . .
EXPOSE 7860
CMD ["R", "--quiet", "-e", "shiny::runApp(host='0.0.0.0', port=7860)"] |