Download Dockerfile from cjerzak/View-DescriptiveRepresentationCalculator: direct link, hf CLI and curl.
- Browser
- Download file 773 Bytes
-
https://huggingface.co/spaces/cjerzak/View-DescriptiveRepresentationCalculator/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/cjerzak/View-DescriptiveRepresentationCalculator/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/cjerzak/View-DescriptiveRepresentationCalculator/resolve/main/Dockerfile
773 Bytes
| FROM rocker/r-base:latest | |
| WORKDIR /code | |
| # Install system dependencies for building R packages and GitHub installs | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| libcurl4-openssl-dev \ | |
| libssl-dev \ | |
| libgit2-dev \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install required R packages | |
| RUN install2.r --error \ | |
| shiny \ | |
| ggplot2 \ | |
| tidyr \ | |
| scales \ | |
| dplyr \ | |
| readr \ | |
| ggExtra \ | |
| remotes | |
| # Install DescriptiveRepresentationCalculator from GitHub | |
| RUN R -e "remotes::install_github('cjerzak/DescriptiveRepresentationCalculator-software/DescriptiveRepresentationCalculator')" | |
| # Copy app code | |
| COPY . /code | |
| # Expose Shiny port | |
| EXPOSE 7860 | |
| # Launch the Shiny app | |
| CMD ["R", "--quiet", "-e", "shiny::runApp('/code', host='0.0.0.0', port=7860)"] |