Download Dockerfile from Geoeasy/rchat: direct link, hf CLI and curl.
- Browser
- Download file 623 Bytes
-
https://huggingface.co/spaces/Geoeasy/rchat/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Geoeasy/rchat/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Geoeasy/rchat/resolve/main/Dockerfile
623 Bytes
| # --- Dockerfile --- | |
| FROM rocker/shiny:latest | |
| # utilitário para normalizar EOL e pacotes R necessários | |
| RUN apt-get update && apt-get install -y --no-install-recommends dos2unix && \ | |
| R -e "install.packages(c('httr2'))" && \ | |
| rm -rf /var/lib/apt/lists/* | |
| # Copia a app Shiny | |
| COPY app.R /srv/shiny-server/app.R | |
| # Normaliza EOL e ownership | |
| RUN dos2unix /srv/shiny-server/app.R && \ | |
| chown -R shiny:shiny /srv/shiny-server | |
| EXPOSE 7860 | |
| # Inicia a app diretamente (sem shiny-server.conf e sem init.sh) | |
| CMD ["R","-e","shiny::runApp('/srv/shiny-server', host='0.0.0.0', port=as.integer(Sys.getenv('PORT','7860')))"] | |