imgw / Dockerfile
alexdum's picture
Fix IMGW ingestion, status/sentinel handling, CBDH metadata, and Dockerfile
442ba7e
Raw History Blame Contribute Delete
912 Bytes
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)"]