OwenStOnge's picture
Update Dockerfile
757a94b verified
FROM rocker/r2u:latest
WORKDIR /code
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
libcurl4-openssl-dev \
libssl-dev \
libxml2-dev \
libmagick++-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 CRAN / r2u packages
RUN install2.r --error --skipinstalled \
shiny \
DT \
dplyr \
readxl \
scales \
readr \
tidyverse \
bslib \
htmltools \
shinyWidgets \
ggplot2 \
png \
arrow \
grid \
gridExtra \
magick \
gt \
gtExtras \
httr \
ggnewscale \
fmsb \
plotly \
tidymodels \
xgboost \
mgcv \
remotes \
cowplot \
reticulate
# Install ggradar from GitHub
RUN R -q -e "remotes::install_github('ricardo-bion/ggradar', upgrade = 'never')"
COPY . .
EXPOSE 7860
CMD ["R", "--quiet", "-e", "shiny::runApp(host='0.0.0.0', port=7860)"]