File size: 899 Bytes
098a84c 4885767 ff7c0d5 4885767 27fa7af c04da58 27fa7af 4885767 098a84c 27fa7af 098a84c 21d9563 8cfb3a4 2983898 c04da58 ff7c0d5 4885767 ff7c0d5 4885767 ff7c0d5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | 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 for sf package
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
RUN install2.r --error \
shiny \
bsicons \
mapgl \
sf \
jsonlite \
dplyr \
readr \
DT \
plotly \
lubridate \
shinycssloaders \
curl \
stringr \
purrr \
shinyjs \
tibble \
data.table \
writexl \
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)"]
|