File size: 589 Bytes
c332469
 
44e2aef
0dbfc34
 
c332469
 
 
 
 
 
 
 
 
 
 
74a1b1e
c332469
 
 
 
0dbfc34
 
c332469
 
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
# Use rocker/geospatial as the base image to include necessary geospatial libraries
FROM rocker/geospatial:latest

WORKDIR /code

# Install R packages, specifying the CRAN repository for reliability
RUN install2.r --error --repos "https://cran.r-project.org" \
    shiny \
    dplyr \
    ggplot2 \
    readr \
    DT \
    ggExtra \
    shinydashboard \
    sf \
    cartogram \
    countrycode \
    rnaturalearth \
    rnaturalearthdata

# Copy the current directory into the container
COPY . .

# Run the Shiny app
CMD ["R", "--quiet", "-e", "shiny::runApp(host='0.0.0.0', port=7860)"]