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