# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker FROM rocker/shiny RUN useradd -m -u 1000 shiny RUN apt-get update && apt-get install -y \ --no-install-recommends \ git-core \ libssl-dev \ libcurl4-gnutls-dev \ curl \ libsodium-dev \ libxml2-dev \ libicu-dev \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* ENV _R_SHLIB_STRIP_=true COPY ./app/* /srv/shiny-server/ RUN install2.r --error --skipinstalled \ shiny \ forecast \ jsonlite \ ggplot2 \ htmltools \ plotly USER shiny EXPOSE 3838 CMD ["/usr/bin/shiny-server"]