Spaces:
Sleeping
Sleeping
Download Dockerfile from stat-utas/CIMSReCalc: direct link, hf CLI and curl.
- Browser
- Download file 553 Bytes
-
https://huggingface.co/spaces/stat-utas/CIMSReCalc/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/stat-utas/CIMSReCalc/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/stat-utas/CIMSReCalc/resolve/main/Dockerfile
553 Bytes
| FROM rocker/shiny:4.0.0 | |
| WORKDIR /srv/shiny-server/app | |
| RUN apt-get update && apt-get install -y git | |
| RUN install2.r --error \ | |
| shiny \ | |
| auth0 \ | |
| data.table \ | |
| glue \ | |
| readxl \ | |
| zoo \ | |
| dplyr | |
| ARG PAT | |
| ARG UN | |
| ARG FILE | |
| ENV PAT=${PAT} | |
| ENV UN=${UN} | |
| ENV FILE=${FILE} | |
| RUN git clone https://${UN}:${PAT}@github.com/${UN}/${FILE}.git /srv/shiny-server/app | |
| RUN echo "options(auth0_find_config_file = '/srv/shiny-server/app/_auth0.yml')" > /usr/local/lib/R/etc/Rprofile.site | |
| CMD ["R", "-e", "shiny::runApp('.', host='0.0.0.0', port=7860)"] | |