Download Dockerfile from cpflecht/oldham2: direct link, hf CLI and curl.
- Browser
- Download file 952 Bytes
-
https://huggingface.co/spaces/cpflecht/oldham2/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/cpflecht/oldham2/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/cpflecht/oldham2/resolve/main/Dockerfile
952 Bytes
| FROM rocker/shiny:4.4.0 | |
| RUN apt-get update && apt-get install -y \ | |
| libcurl4-openssl-dev \ | |
| libssl-dev \ | |
| libxml2-dev \ | |
| libfontconfig1-dev \ | |
| libharfbuzz-dev \ | |
| libfribidi-dev \ | |
| libfreetype6-dev \ | |
| libpng-dev \ | |
| libtiff5-dev \ | |
| libjpeg-dev \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN R -e "install.packages(c( \ | |
| 'shiny', \ | |
| 'shinythemes', \ | |
| 'DT', \ | |
| 'dplyr', \ | |
| 'tidyr', \ | |
| 'readr', \ | |
| 'plotly', \ | |
| 'stringr', \ | |
| 'scales', \ | |
| 'htmltools' \ | |
| ), repos='https://cran.rstudio.com/')" | |
| COPY app.R /srv/shiny-server/app/app.R | |
| COPY OA_sheet_for_app.csv /srv/shiny-server/app/OA_sheet_for_app.csv | |
| COPY all_players_enriched_multiseason.csv /srv/shiny-server/app/all_players_enriched_multiseason.csv | |
| RUN printf '#!/bin/bash\ncd /srv/shiny-server/app && Rscript -e "shiny::runApp(\".\", host=\"0.0.0.0\", port=7860)" 2>&1\n' > /start.sh \ | |
| && chmod +x /start.sh | |
| EXPOSE 7860 | |
| CMD ["/start.sh"] |