-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
24 lines (20 loc) · 990 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
24
# 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( 'shinythemes','shinyjs', 'shinyscreenshot', 'geosphere', 'raster', 'gstat', 'ggpubr', 'gridExtra', 'maps', 'rnpn','leaflet', 'terra','colorRamps', 'lubridate','digest','aws.s3','ptw','doSNOW','svglite'), dependencies=TRUE)"
# Copy your Shiny app directory into the image
# COPY sample /srv/shiny-server/sample
COPY phenology-website/phenoinfo /srv/shiny-server/phenoinfo
COPY phenology-website/phenowatch /srv/shiny-server/phenowatch
COPY phenology-website/phenoforecast /srv/shiny-server/phenoforecast
RUN chmod 777 /srv/shiny-server/phenoforecast
# Expose the default Shiny Server port (optional if not changed)
EXPOSE 3838