Spaces:
Sleeping
Sleeping
| #R-Shiny template https://huggingface.co/spaces/posit/shiny-for-r-template/tree/main | |
| #Py-shiny template https://huggingface.co/spaces/posit/gptneox-chat | |
| ############################# | |
| # RSTUDIO-SERVER # | |
| # VOLUME DOCKERFILE # | |
| #***************************# | |
| # Set up a jupyter-lab for # | |
| # developing using deepvats # | |
| ############################# | |
| ############## | |
| # Base image # | |
| ############## | |
| # Adds rstudio server, tiyverse, devtools to rocker/cuda | |
| FROM misantamaria/dvats-rstudio-ghf:latest | |
| SHELL [ "/bin/bash", "--login", "-c" ] | |
| #RUN chown ${USER_ID}:${GROUP_ID} /home/.config/matplotlib | |
| #RUN chown ${USER_ID}:${GROUP_ID} $MPLCONFIGDIR | |
| RUN chown ${USER_ID}:${GROUP_ID} /home/data | |
| RUN chown ${USER_ID}:${GROUP_ID} /home/data/wandb_artifacts | |
| RUN chown ${USER_ID}:${GROUP_ID} /var/run/s6 | |
| RUN chown ${USER_ID}:${GROUP_ID} /home/ | |
| # Install deepvats | |
| RUN mkdir /home/app/wandb | |
| RUN echo "--> Go!" | |
| #CMD [ "/init" ] | |
| #CMD ["R", "--quiet", "-e", "shiny::runApp(host='0.0.0.0', port=7860)"] | |
| ARG RSTUDIO_PORT | |
| ENV RSTUDIO_PORT=$RSTUDIO_PORT | |
| ENV APP="app" | |
| RUN chmod +777 /home/.cache | |
| RUN mkdir /home/.cache/matplotlib | |
| RUN chmod +777 /home/.cache/matplotlib | |
| RUN mkdir /home/.config | |
| RUN mkdir /home/.config/matplotlib | |
| RUN chmod +777 /home/.config | |
| RUN chmod +777 /home/.config/matplotlib | |
| RUN echo "RETICULATE_MINICONDA_PATH" $RETICULATE_MINICONDA_PATH | |
| #Online | |
| CMD ["R", "--quiet", "-e", "shiny::runApp(Sys.getenv('APP'), host='0.0.0.0', port=as.integer(Sys.getenv('RSTUDIO_PORT')))"] |