Spaces:
Sleeping
Sleeping
Download Dockerfile from softwareDevelopment/qtl: direct link, hf CLI and curl.
- Browser
- Download file 1.56 kB
-
https://huggingface.co/spaces/softwareDevelopment/qtl/resolve/e789b044b76b83bbcd0ce37500fe2fbd44f6985d/Dockerfile
- Command line
-
hf download hf://spaces/softwareDevelopment/qtl@e789b044b76b83bbcd0ce37500fe2fbd44f6985d/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/softwareDevelopment/qtl/resolve/e789b044b76b83bbcd0ce37500fe2fbd44f6985d/Dockerfile
1.56 kB
| FROM rocker/shiny:latest | |
| # Set working directory inside container | |
| WORKDIR /code | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| libcurl4-openssl-dev \ | |
| libssl-dev \ | |
| libxml2-dev \ | |
| libnlopt-dev \ | |
| libicu-dev \ | |
| libgdal-dev \ | |
| libgeos-dev \ | |
| libproj-dev \ | |
| libv8-dev \ | |
| libnode-dev \ | |
| libglpk-dev \ | |
| libglpk40 \ | |
| && apt-get clean \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install pak and remotes first (needed for GitHub installs) | |
| RUN install2.r --error remotes pak | |
| # Install htmlwidgets and related dependencies | |
| RUN install2.r --error \ | |
| htmltools \ | |
| htmlwidgets \ | |
| jsonlite \ | |
| crosstalk \ | |
| magrittr \ | |
| promises \ | |
| ellmer \ | |
| shinychat \ | |
| text2vec \ | |
| Matrix | |
| # Install main packages | |
| RUN install2.r --error \ | |
| nloptr \ | |
| lme4 \ | |
| emmeans \ | |
| readxl \ | |
| plotly \ | |
| shinyjs \ | |
| shinyWidgets \ | |
| DT \ | |
| RColorBrewer \ | |
| ggrepel \ | |
| openxlsx \ | |
| randomForest \ | |
| caret \ | |
| qtl \ | |
| writexl \ | |
| viridis \ | |
| devtools \ | |
| tidyverse \ | |
| igraph \ | |
| vcfR \ | |
| poppr \ | |
| reshape2 | |
| # Install packages from GitHub using pak (modern replacement for devtools::install_github) | |
| RUN R -e "pak::pak('cran/qtlDesign')" \ | |
| && R -e "pak::pak('jtlovell/qtlTools')" | |
| # Create www directory and health file | |
| RUN mkdir -p /code/www && echo "OK" > /code/www/health | |
| # Copy app code | |
| COPY app.R /code/ | |
| # Expose the port Shiny will run on | |
| EXPOSE 7860 | |
| # Run the app | |
| CMD ["R", "--quiet", "-e", "shiny::runApp('/code', host='0.0.0.0', port=7860)"] |