Spaces:
Running
Running
File size: 1,084 Bytes
2153f89 c398e6b 4f1700b 0a8d77c 4f1700b 0a8d77c 4f1700b 2153f89 a39242f 2153f89 a39242f 2153f89 a39242f 362e73d c398e6b 0a8d77c f4a2a08 | 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 | FROM rocker/r2u:latest
WORKDIR /code
# System dependencies + Python
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
libcurl4-openssl-dev \
libssl-dev \
libxml2-dev \
libfontconfig1-dev \
libfreetype6-dev \
libpng-dev \
libjpeg-dev \
libtiff5-dev \
libharfbuzz-dev \
libfribidi-dev \
zlib1g-dev \
libbz2-dev \
liblz4-dev \
libzstd-dev \
libsnappy-dev \
python3 \
python3-pip \
python3-dev \
libpython3-dev \
&& rm -rf /var/lib/apt/lists/*
# Python packages
RUN pip3 install huggingface_hub --break-system-packages
ENV RETICULATE_PYTHON=/usr/bin/python3
# Install R packages using r2u (pre-compiled binaries, much faster)
RUN install2.r --error --skipinstalled \
shiny \
shinydashboard \
shinyWidgets \
ggplot2 \
dplyr \
tidyr \
gt \
scales \
png \
purrr \
httr \
arrow \
readr \
zoo \
ggimage \
reticulate
COPY . .
EXPOSE 7860
CMD ["R", "--quiet", "-e", "shiny::runApp(host='0.0.0.0', port=7860)"] |