ARG RAPIDS_IMAGE FROM $RAPIDS_IMAGE as rapids # add sagemaker-training-toolkit [ requires build tools ], flask [ serving ], and dask-ml RUN apt-get update && apt-get install -y --no-install-recommends build-essential \ && source activate rapids \ && pip3 install sagemaker-training cupy-cuda11x flask \ && pip3 install --upgrade protobuf # Copies the training code inside the container COPY rapids-higgs.py /opt/ml/code/rapids-higgs.py # Defines rapids-higgs.py as script entry point ENV SAGEMAKER_PROGRAM rapids-higgs.py