File size: 615 Bytes
c332469
 
44e2aef
0dbfc34
 
c332469
960436f
c332469
960436f
c332469
 
 
 
960436f
c332469
960436f
 
 
 
8ac3c82
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
26
# 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 --deps TRUE --repos "https://cran.r-project.org" \
    shiny \
    shinydashboard \
    dplyr \
    readr \
    sf \
    cartogram \
    ggplot2 \
    rnaturalearth \
    rnaturalearthdata \
    countrycode \
    DT \
    ggExtra \
    viridis

# 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)"]