Spaces:
Sleeping
Sleeping
Download Dockerfile from cdcavin/queens-api: direct link, hf CLI and curl.
- Browser
- Download file 429 Bytes
-
https://huggingface.co/spaces/cdcavin/queens-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/cdcavin/queens-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/cdcavin/queens-api/resolve/main/Dockerfile
429 Bytes
| FROM rstudio/plumber | |
| RUN Rscript -e "install.packages(c('data.table','jsonlite'), repos='https://cran.rstudio.com/')" | |
| WORKDIR /app | |
| COPY plumber.R . | |
| COPY fit_l6_champ.rds . | |
| COPY haa_anchor_model.rds . | |
| COPY vaa_anchor_model.rds . | |
| COPY shape_scaling_factors.rds . | |
| COPY train_means.csv . | |
| COPY pitcher_profiles.csv . | |
| EXPOSE 7860 | |
| ENTRYPOINT ["Rscript", "-e", "pr <- plumber::plumb('plumber.R'); pr$run(host='0.0.0.0', port=7860)"] | |