meteogate / Dockerfile
alexdum's picture
Sync current state to Hugging Face
3fee36c
Raw History Blame Contribute Delete
1.22 kB
FROM rocker/shiny-verse:latest
RUN useradd -m -u 1000 user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
RUN mkdir -p $HOME/app && chown user:user $HOME/app
WORKDIR $HOME/app
# Install system dependencies if needed (shiny-verse covers most)
# libcurl4-gnutls-dev, libssl-dev, libxml2-dev are standard in this image
RUN apt-get update && apt-get install -y \
libudunits2-dev \
libgdal-dev \
libgeos-dev \
libproj-dev \
&& rm -rf /var/lib/apt/lists/*
# Install R packages
# We explicitly list ALL packages from global.R for clarity.
# Note: shiny, dplyr, readr, stringr, purrr, lubridate are already in the base image,
# but listing them ensures they are checked/installed if missing.
RUN install2.r --error \
shiny \
bsicons \
mapgl \
sf \
dplyr \
readr \
DT \
plotly \
lubridate \
shinycssloaders \
curl \
stringr \
purrr \
shinyjs \
jsonlite \
writexl \
DBI \
httr \
arrow \
duckdb \
remotes
RUN installGithub.r \
rstudio/bslib \
rstudio/httpuv
COPY --chown=user . $HOME/app
USER user
EXPOSE 7860
CMD ["R", "--quiet", "-e", "shiny::runApp('/home/user/app', host='0.0.0.0', port=7860)"]