Download Dockerfile from TimStats/MinorLeagueStatcast: direct link, hf CLI and curl.
- Browser
- Download file 486 Bytes
-
https://huggingface.co/spaces/TimStats/MinorLeagueStatcast/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/TimStats/MinorLeagueStatcast/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/TimStats/MinorLeagueStatcast/resolve/main/Dockerfile
486 Bytes
| FROM rocker/shiny:latest | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| libssl-dev \ | |
| libcurl4-openssl-dev \ | |
| libxml2-dev \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /code | |
| # Install R packages | |
| RUN install2.r --error \ | |
| shiny \ | |
| DT \ | |
| dplyr \ | |
| tidyverse \ | |
| httr \ | |
| bslib \ | |
| rtabulator \ | |
| xgboost \ | |
| purrr \ | |
| arrow | |
| # Copy the app files | |
| COPY . . | |
| CMD ["R", "--quiet", "-e", "shiny::runApp(host='0.0.0.0', port=7860)"] | |