Download Dockerfile from diegoellissoto/Biodiversity_Access: direct link, hf CLI and curl.
- Browser
- Download file 503 Bytes
-
https://huggingface.co/spaces/diegoellissoto/Biodiversity_Access/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/diegoellissoto/Biodiversity_Access/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/diegoellissoto/Biodiversity_Access/resolve/main/Dockerfile
503 Bytes
| FROM quay.io/jupyter/minimal-notebook:ubuntu-24.04 | |
| USER root | |
| # Install R | |
| RUN curl -s https://raw.githubusercontent.com/boettiger-lab/repo2docker-r/refs/heads/main/install_r.sh | bash | |
| WORKDIR /code | |
| # Install R packages first. | |
| # This layer only rebuilds when install.r changes. | |
| COPY install.r . | |
| RUN Rscript install.r | |
| # Copy application and data after packages are installed. | |
| COPY . . | |
| # Hugging Face Spaces | |
| EXPOSE 7860 | |
| CMD ["R", "--quiet", "-e", "shiny::runApp('app.R', host='0.0.0.0', port=7860)"] | |