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)"]