Skip to content

Commit

Permalink
fix RestRServe Example (aws#3553)
Browse files Browse the repository at this point in the history
  • Loading branch information
atqy authored Aug 17, 2022
1 parent 0fbc28c commit 3e868a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion r_examples/r_serving_with_restrserve/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ FROM r-base:3.6.3

MAINTAINER Amazon SageMaker Examples <[email protected]>

RUN R -e "install.packages(c('RestRserve','xgboost','dplyr'), repos='https://cloud.r-project.org')"
RUN R -e "install.packages(c('RestRserve','data.table', 'stringi', 'dplyr'), repos='https://cloud.r-project.org')"
RUN wget http://cran.r-project.org/src/contrib/Archive/xgboost/xgboost_1.4.1.1.tar.gz
RUN R CMD INSTALL xgboost_1.4.1.1.tar.gz

COPY xgb.model /opt/ml/xgb.model
COPY restrserve.R /opt/ml/restrserve.R
Expand Down

0 comments on commit 3e868a4

Please sign in to comment.