Spaces:
Running
Running
| # Dockerfile for the Shiny app illustrating K=3 Largest-Group-Wins behavior | |
| FROM rocker/r-base:latest | |
| WORKDIR /code | |
| # Install additional R packages via install2.r | |
| RUN install2.r --error \ | |
| shiny \ | |
| dplyr \ | |
| ggplot2 \ | |
| readr \ | |
| ggExtra | |
| # Copy all local files (including the Shiny app code) into the Docker image | |
| COPY . . | |
| # Default command to launch the Shiny app on port 7860, listening on all interfaces | |
| CMD ["R", "--quiet", "-e", "shiny::runApp(host='0.0.0.0', port=7860)"] | |