File size: 667 Bytes
636172d
2e09db0
 
636172d
2e09db0
 
636172d
 
 
 
 
 
 
 
 
 
 
2e09db0
 
 
 
 
457e419
636172d
 
 
 
2e09db0
 
636172d
 
 
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
27
28
29
30
31
32
33
# Start with the base R image
FROM rocker/r-base:latest

# Set working directory
WORKDIR /code

# Install system dependencies, including Pandoc and TinyTeX
RUN apt-get update && apt-get install -y \
    pandoc \
    pandoc-citeproc \
    wget \
    && apt-get clean

# Install TinyTeX for LaTeX support
RUN R -e "install.packages('tinytex'); tinytex::install_tinytex()"

# Install required R packages
RUN install2.r --error \
    shiny \
    dplyr \
    ggplot2 \
    readr \
    ggExtra \
    rmarkdown \
    knitr

# Copy application code
COPY . .

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