DataProcess / Dockerfile
OwenStOnge's picture
Update Dockerfile
9ea6d36 verified
raw
history blame
826 Bytes
FROM rocker/r2u:latest
WORKDIR /code
# Install system dependencies + Python
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
libcurl4-openssl-dev \
libssl-dev \
libxml2-dev \
python3 \
python3-pip \
&& rm -rf /var/lib/apt/lists/*
# Install huggingface_hub Python package
RUN pip3 install huggingface_hub --break-system-packages
# Install R packages
RUN install2.r --error --skipinstalled \
shiny \
shinydashboard \
shinyBS \
DT \
dplyr \
readr \
stringr \
jsonlite \
httr \
progressr \
RCurl \
curl \
recipes \
arrow \
base64enc \
reticulate \
xgboost
# Copy app files
COPY . .
# Expose port
EXPOSE 7860
# Run the app
CMD ["R", "--quiet", "-e", "shiny::runApp(host='0.0.0.0', port=7860)"]