DefensiveApp / Dockerfile
OwenStOnge's picture
Update Dockerfile
3557f6e 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 \
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 \
tidyr \
readr \
stringr \
scales \
htmltools \
ggplot2 \
gt \
gtExtras \
plotly \
tidymodels \
xgboost \
arrow \
reticulate \
recipes \
httr \
fmsb \
jsonlite
COPY . .
EXPOSE 7860
CMD ["R", "--quiet", "-e", "shiny::runApp(host='0.0.0.0', port=7860)"]