Spaces:
Running
Running
File size: 912 Bytes
442ba7e 2e9a2d0 3e1cf28 47645e7 644db08 47645e7 3e1cf28 47645e7 8baf562 442ba7e 47645e7 3e1cf28 47645e7 3e1cf28 47645e7 | 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:4.5.3
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
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 \
shinyWidgets \
bslib \
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)"]
|