Spaces:
Sleeping
Sleeping
File size: 429 Bytes
0247f30 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | 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)"]
|