-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
23 lines (19 loc) · 901 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Use a base image with R and Shiny Server pre-installed
FROM rocker/shiny-verse:latest
# Install system libraries for geospatial analysis
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
libudunits2-dev \
libgdal-dev \
libgeos-dev \
libproj-dev \
libmysqlclient-dev
# Install R packages
RUN R -e "install.packages(c('shinyjs', 'shinyscreenshot', 'geosphere', 'raster', 'gstat', 'ggpubr', 'gridExtra', 'maps', 'rnpn','leaflet', 'terra','colorRamps', 'lubridate','digest','aws.s3','ptw','doSNOW','svglite','ggnewscale'), dependencies=TRUE)"
# Copy your Shiny app directory into the image
# COPY phenoinfo /srv/shiny-server/phenoinfo
COPY phenowatch /srv/shiny-server/phenowatch
# COPY phenoforecast /srv/shiny-server/phenoforecast
# RUN chmod 777 /srv/shiny-server/phenoforecast
# Expose the default Shiny Server port (optional if not changed)
EXPOSE 3838