Download Dockerfile from softwareDevelopment/Phenotypic_data_analysis: direct link, hf CLI and curl.
- Browser
- Download file 1.03 kB
-
https://huggingface.co/spaces/softwareDevelopment/Phenotypic_data_analysis/resolve/8ee3eb9c3cd4ab3a5cbc37bb9d68fe1903da3d39/Dockerfile
- Command line
-
hf download hf://spaces/softwareDevelopment/Phenotypic_data_analysis@8ee3eb9c3cd4ab3a5cbc37bb9d68fe1903da3d39/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/softwareDevelopment/Phenotypic_data_analysis/resolve/8ee3eb9c3cd4ab3a5cbc37bb9d68fe1903da3d39/Dockerfile
1.03 kB
| FROM rocker/shiny:latest | |
| # Set working directory inside container | |
| WORKDIR /code | |
| # Install additional 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 | |
| # Install DT dependencies first | |
| RUN install2.r --error \ | |
| htmltools \ | |
| htmlwidgets \ | |
| jsonlite \ | |
| crosstalk \ | |
| magrittr \ | |
| promises | |
| # Then install the main packages | |
| RUN install2.r --error \ | |
| nloptr \ | |
| lme4 \ | |
| emmeans \ | |
| readxl \ | |
| ggplot2 \ | |
| plotly \ | |
| shinyjs \ | |
| shinyWidgets \ | |
| DT \ | |
| tidyverse | |
| # Create www directory and copy health.txt, then rename it to 'health' | |
| RUN mkdir -p /code/www | |
| COPY health.txt /code/www/health | |
| # Copy app code | |
| COPY app.R /code/ | |
| # Expose the port Shiny will run on | |
| EXPOSE 7861 | |
| # Run the app with corrected host address | |
| CMD ["R", "--quiet", "-e", "shiny::runApp('/code', host='0.0.0.0', port=7861)"] |